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 then I get:
If string = " "
and it still doesn't recognize it.
Any ideas on what VBA recognizes as the nonbreaking hyphen?
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 then I get:
If string = " "
and it still doesn't recognize it.
Any ideas on what VBA recognizes as the nonbreaking hyphen?