View Single Post
 
Old 01-04-2016, 03:41 AM
Thefirstfish` Thefirstfish` is offline Windows 10 Office 2016
Novice
 
Join Date: Dec 2015
Posts: 11
Thefirstfish` is on a distinguished road
Default

Another quick question...

I'm using the following snippet of code as an extension to what Greg wrote



.Text = "[0-9]-[0-9]"
.MatchWildcards = True
.MatchWholeWord = False
.Replacement.Text = "–"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue

How can I amend this to only replace the 2nd character of the found text? I've tried putting ".Character(2)" in various places, and a few other ideas, but to no avail. Thanks.

Also, instead of using "ActiveDocument.Range" is there a way to get the macro to ignore deleted text in Track Changes revisions?
Reply With Quote