Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word help - removing carriages 1

Status
Not open for further replies.

psimon88

IS-IT--Management
Jul 21, 2005
66
US
There must be a way to do this.

I have to stitch together two separate pdfs and it's cut and paste hell. In particular, I have to manually remove all of the carriage returns. I wasn't sure if there's some VBA out there to do this.

Any thoughts/hints would be enormously appreciated.
 



Get MS Word Copy/Paste-text to word wrap properly faq68-1449

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
Poultry in motion to pullet for a paltry amount! [tongue]
 
As Skip's FAQ suggests, if you are going to be doing this a lot it would be a good idea to make this a recorded macro. And yes, VBA can certainly do it.

Gerry
 
Hey, don't get complicated--carriage returns are ^p. If you choose find/replace and replace all ^p with spaces, all the carriage returns will go away.

Now if you want to save the genuine paragraph beginnings first, replace double carriage returns (^p^p) with some other non-standard character (like ##), replace all the carriage returns, then go back and replace your ## with a double carriage return. It's a three step process.
 


Hey marty!

Did you read the FAQ?

Skip,

[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top