![]() |
#2
|
|||
|
|||
![]()
Hi! Your dash 2013 is actually en-dash ChrW(8211) & dash 002D is hyphen-minus ChrW(45).
Without seeing your 'Select Case ...' I have doubts if the following will help, but try using Code:
Case InStr(oRngEval, " " & ChrW(8211) & " ") = 1, InStr(oRngEval, " " & ChrW(45) & " ") = 1 Or if there are no other Cases, I'd use: Code:
Dim sStr As String Select Case InStr(oRng, " " & sStr & " ") = 1 Case sStr = ChrW(45), sStr = ChrW(8211) |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SamDsouza | Word VBA | 3 | 03-12-2020 04:49 AM |
![]() |
steveflooks | Word | 1 | 07-19-2018 02:52 PM |
![]() |
branko | Word VBA | 1 | 03-28-2017 11:50 PM |
Is it possible to include a newline character in the replace text | desgordon | Word | 2 | 09-14-2012 02:28 AM |
![]() |
Bobosmite | Word | 2 | 05-06-2011 04:21 AM |