P
pjm
Hi, I hope someone here can help me with this... I've been perplexed b
this ever since WordBasic got dumped for VBA with all its "helpful
objects. I've messed with this until blue in the face and never foun
whatever the simple answer must be. Now I simply use Vi to do it bu
would LOVE to be able to do it in Word:
Simply: How do you repeat a recorded macro until the end of th
document, with the logic:
While NOT EOF
Repeat until end of document
For example, sometimes when dealing with really long database report
that are formatted for a # of lines per page, I'll record a macro tha
searches for the next occurence of a word, then move the cursor 5 char
to the right, then select to the end of the line, then delete, the
search for the previous instance of something else..etc.etc. And the
I want to do all this over and over again until the end of th
document.
I'll record the macro and would like to enclose it in a loop lik
above. But what to test for? I've tried making an infinite loop but i
seems to wrap to the top of the document when it hits the end. This i
such a simple and common problem, but for the life of me I can't figur
out how to do it!!! HELP!! Thanks, Pete
this ever since WordBasic got dumped for VBA with all its "helpful
objects. I've messed with this until blue in the face and never foun
whatever the simple answer must be. Now I simply use Vi to do it bu
would LOVE to be able to do it in Word:
Simply: How do you repeat a recorded macro until the end of th
document, with the logic:
While NOT EOF
Repeat until end of document
For example, sometimes when dealing with really long database report
that are formatted for a # of lines per page, I'll record a macro tha
searches for the next occurence of a word, then move the cursor 5 char
to the right, then select to the end of the line, then delete, the
search for the previous instance of something else..etc.etc. And the
I want to do all this over and over again until the end of th
document.
I'll record the macro and would like to enclose it in a loop lik
above. But what to test for? I've tried making an infinite loop but i
seems to wrap to the top of the document when it hits the end. This i
such a simple and common problem, but for the life of me I can't figur
out how to do it!!! HELP!! Thanks, Pete