Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Macro does not work on docs with tracked changes!!
Hi,
I have a macro which works fine with normal documents(without tracked changes) but if I try to run it on a document with tracked changes it doesn't work.Why is that so? This is the macro that I'm using: sub single_to_double_quotes() ActiveDocument.Select Selection.StartOf Unit:=wdStory Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find ..Text = ChrW(8216) & "([A-Za-z0-9]*)" & ChrW(8217) ..Replacement.Text = ChrW(8220) & "\1" & ChrW(8221) ..MatchWildcards = True ..Forward = True ..Wrap = wdFindContinue End With Selection.Find.Execute Replace:=wdReplaceAll Selection.Find.Execute Selection.StartOf (wdStory) end sub Would appreciate any help. Thanx. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I mail merge to EMAIL from MS Word AND add a pdf attachment | Mailmerge | |||
macro doesn't work when I unprotect form | Formatting Long Documents | |||
Possible bug when recording a Word Macro | Microsoft Word Help | |||
Getting Spell Check Macro to work | Microsoft Word Help | |||
Save As is not working due to macro security settings | Microsoft Word Help |