View Single Post
 
Old 07-12-2011, 06:34 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,527
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Jamal,

I really don't recommend doing that - it will cause the macro to delete punctation marks in text you're trying to clean up when it's been copied from pdfs, emails, web pages, etc when the punctuation should remain. Still, if that's what you want to do, insert the lines:
Code:
  .Text = "[,.;:‘’'“”""/\!\*\?\\]"
  .Replacement.Text = ""
  .Execute Replace:=wdReplaceAll
after the line:
.MatchWildcards = True
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote