![]() |
#1
|
|||
|
|||
![]()
Scan through the complete document for Text: "+40 deg C'
Replace + with - only if it is followed by a number. Dont replace if - is followed by a non-number. Regular expression is required to find the matches. Please share a Macro for the same. |
#2
|
||||
|
||||
![]()
Find +([0-9])
Replace with -\1 with the wildcard option checked. You can record the search for a macro.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Gowri | Word VBA | 8 | 03-26-2017 04:14 AM |
![]() |
iiiiifffff | Word VBA | 16 | 06-04-2016 01:47 AM |
![]() |
rohanrohith | Word VBA | 3 | 11-27-2014 01:08 PM |
Macro to find coloured text and replace with form-field/formtext containing that text | tarktran | Word VBA | 1 | 11-26-2014 08:12 AM |
![]() |
bennymc | Word VBA | 1 | 01-27-2014 04:23 PM |