Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2014, 04:37 AM
Mihail Mihail is offline Just MS Word Windows XP Just MS Word Office 2007
Novice
Just MS Word
 
Join Date: Apr 2012
Posts: 6
Mihail is on a distinguished road
Default

Thank you for the help, Paul.

Of course that I tried your macro on my document (as it is) but I didn't obtain the desired results because

I need to eliminate the manual line break(s) and your macro don't do this.
More, it transform my text in something unreadable. Do a try, please, and see what I speaking about.

And, again, I am not able to tweak this because I have no idea (yet ) about VBA for word.

About the last code you give me, I'll try to implement it.
Where ? Hope I'll be able to understand.



Thank you again.
Reply With Quote
  #2  
Old 01-10-2014, 04:51 AM
macropod's Avatar
macropod macropod is offline Just MS Word Windows 7 32bit Just MS Word Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Quote:
Originally Posted by Mihail View Post
I need to eliminate the manual line break(s) and your macro don't do this.
That's easily remedied by inserting:
Code:
  'Replace manual line breaks with paragraph breaks
  .Text = "[^]{1,}"
  .Replacement.Text = "^p"
  .Execute Replace:=wdReplaceAll
before:
Code:
  'Replace single paragraph breaks with a space
Quote:
More, it transform my text in something unreadable.
Did you read the caveat in the link about the basic format requirements of the text to be converted? Does your text conform?
Quote:
About the last code you give me, I'll try to implement it.
Where ? Hope I'll be able to understand.
Surely you can at least read your own code, even if you don't understand it...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Other Forums: Access Forums

All times are GMT -7. The time now is 03:28 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