Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2011, 05:47 AM
Jamal NUMAN Jamal NUMAN is offline How to combine many paragraphs in one paragraph? Windows XP How to combine many paragraphs in one paragraph? Office 2007
Expert
How to combine many paragraphs in one paragraph?
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by macropod View Post
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
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to combine many paragraphs in one paragraph? Track chages combine: Stumped! Ulodesk Word 2 01-03-2011 11:43 AM
How to combine many paragraphs in one paragraph? Combine two forms into one lwisniewski Word VBA 3 12-24-2010 03:45 PM
How to combine many paragraphs in one paragraph? Combine pst files? markg2 Outlook 2 04-26-2010 03:09 PM
How do you combine two contact folders? waikoloavrm Outlook 0 04-12-2010 02:31 PM
Bulletizing one paragraph affects all paragraphs GoodWebby Word 0 10-10-2009 12:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft