Quote:
Originally Posted by macropod
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 = "([ ])[ ]{1,}"
Do you really want to delete all spaces and punctuation marks? That would give you text like:
Doyoureallywanttodeleteallspacesandpunctuationmark sThatwouldgiveyoutextlike
|
thank you Paul.
You are right. i don't need to delete the spaces! i meant that i needed to delete all other marks except the spaces!
the reason i need this is that:
i save the pdf articles that i read by giving them the title of the article and the name of the author. As you know, as i copy and paste them from pdf file to the Word document, i got them separated in many paragraphs.
Also Windows is very sensitive if we include certain punctuation marks in the name of the file!!!!
this is why i need to combine all paragraph in one paragraph and to get rid of all punctuation marks!!!
i was doing these steps manually before you provide me with the Macro that combines paragraph.
regards
Jamal