View Single Post
 
Old 03-09-2017, 05:01 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your Find/Replace would, amongst other things, replace a single space with a pair of spaces. You'd probably do better to use something like:
Find = ([0-9A-Za-z])-
Replace = \1^s-
As coded, my version ensures there's actually a letter or number before the hyphen, then inserts a non-breaking space before it - which ensures the hyphen doesn't end up starting a new line.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote