View Single Post
 
Old 07-11-2011, 05:06 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,

Shift-Enter creates a manual line break within a paragraph - it does not create a new paragraph. You can delete manual line breaks and tabs by inserting the follwing three lines:
Code:
  .Text = "[^t^l]{1,}"
  .Replacement.Text = " "
  .Execute Replace:=wdReplaceAll
before the line:
.Text = "[ ]{2,}"

Do you really want to delete all spaces and punctuation marks? That would give you text like:
Doyoureallywanttodeleteallspacesandpunctuationmark sThatwouldgiveyoutextlike
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote