I am trying to write a macro for Word 2007 in which I have an If statement that seeks to determine if a string is a nonbreaking hyphen. I have tried:
If string = "Chr(30)"
If string = "-"
If string = "^~"
I have even tried to copy and paste the exact character I want into the VBA but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.