View Single Post
 
Old 07-03-2024, 02:30 AM
Shelley Lou Shelley Lou is offline Windows 10 Office 2016
Expert
 
Join Date: Dec 2020
Posts: 259
Shelley Lou is on a distinguished road
Default VBA include Character Code 002D Dash-Minus

Hi, in my Word documents the dashes are either character code 2013 or 002D.

The code below only looks for code 2013. I would like to add an additional line of code to include code 002D but not sure how to include this - can anybody help/advise at all, thanks.


Code:
 Case InStr(oRngEval, " - ") = 1 'highlights if cross refs separated by a dash and space either side e.g. clause 1 - 2
              oRng.Move wdCharacter, 3
              lngOffset = 3
Reply With Quote