View Single Post
 
Old 12-09-2018, 10:09 PM
ganesang ganesang is offline Windows XP Office 2016
Competent Performer
 
Join Date: Jul 2018
Posts: 170
ganesang is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
ganesang: When posting code, please use the code tags and apply them to formatted code. Otherwise, your code loses much of whatever structure it had. See my edit to your original post and compare it with your post #3 in this thread.

As for the question itself, it's not apparent why you'd want to run the same macro multiple times, since the use of '.Wrap = wdFindContinue' means all instances of whatever you're trying to replace should be processed on the first execution. As it is, your code is quite inefficient; you review the code you were provided in https://www.msofficeforums.com/word-...tml#post134040 for indications as to how your code's efficiency could be improved. Consider, too, https://www.msofficeforums.com/word-...tween-two.html
Hi Paul,

Thanks for info about the code formatting. I can use it in future.

Actually, i have recorded the macro which needs to be done

Find the first set of value (using first willd card) from the end of document and cut it and replace at the first set of value (from first finding row using second wildcard) from the table.

I have recorded the macro this way, but if have 40 replacements i have to run this macro 40 times manually.

That's why asking to run macro until first wild card value false.

Please let me know if not clear.

Thanks
Reply With Quote