![]() |
#1
|
|||
|
|||
![]()
Hello to every one and
HAPPY NEW YEAR ! Can you, please, take a look to this thread ? http://www.access-programmers.co.uk/...43#post1321143 maybe you can help me somehow ?! Thank you. |
#2
|
||||
|
||||
![]()
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Hi Paul.
Thank you very much for the code. Can you help me a bit more please ? I uploaded a document (Word 2007) that contain what I copied from www. If I run first my code then your code (the last part), all seems to be OK. But, in order to fully automatize that I need a condition to escape from my last Do-Loop. While I have no idea about Word's objects, I have no chance to do this on my own. Thank you. |
#4
|
||||
|
||||
![]()
As can be seen from the code in the link I posted, all of your requirements can be met with a straightforward Find/Replace macro without the need to introduce the complications of function calls and looping. Indeed, you shouldn't need both macros - mine can handle the whole task on its own and is somewhat more sophisticated than what you now have and is much more efficient. Unlike yours, mine also doesn't change the selected range.
As to the looping issue with your code, you should be able to resolve that by changing: .Wrap = wdFindContinue to: .Wrap = wdFindStop
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
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 the last code you give me, I'll try to implement it. Where ? Hope I'll be able to understand. Thank you again. |
#6
|
||||
|
||||
![]() Quote:
Code:
'Replace manual line breaks with paragraph breaks .Text = "[^]{1,}" .Replacement.Text = "^p" .Execute Replace:=wdReplaceAll Code:
'Replace single paragraph breaks with a space Quote:
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]()
@Paul
Quote:
![]() Quote:
I don't understand a lot of stuff here, and, for sure, a lot of this code is unnecessary, but I am not able, based on my skills on VBA for Word, to make a decision. Anyway, with your huge help, I got it to work. Thank you very much ! Anyone can see the "solution" here: http://www.access-programmers.co.uk/...d.php?t=259250 Thank you one more time ! All the bests ! |
![]() |
|