Reply
 
Thread Tools Display Modes
  #1   Report Post  
Purnima
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I mail merge to EMAIL from MS Word AND add a pdf attachment Lily@Insight Mailmerge 24 January 15th 07 09:33 PM
macro doesn't work when I unprotect form mary Formatting Long Documents 1 May 3rd 05 07:35 PM
Possible bug when recording a Word Macro Raven95 Microsoft Word Help 4 April 30th 05 09:49 PM
Getting Spell Check Macro to work Tom Hyland Microsoft Word Help 8 January 14th 05 06:45 PM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM


All times are GMT +1. The time now is 08:56 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"