View Single Post
 
Old 02-19-2019, 01:28 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
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

Because of :-\?, your Find expression say, amongst other things, to find all characters between : and ?. That includes :, ;, <, =, >, and ?. You need to use \-, as in:
.Text = "[.,;:\-\?\!^13^34]"
And, yes, you can use ^n, where n is a number, to look for ASCII characters - but for the most part you can also use the characters themselves.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote