Vlad
If you're still out there or anyone else.
I'm still having a little trouble with my project. I need to find existing page numbers and renumber them. Part of the problem is that the word "page" appears on the document in other places than just the headings that I need to change. Also, I need the actual numbers right justified - not simply entered in place. Finally, sometimes there are already numbers in place and sometimes just the word PAGE with no numbers.
I have an if-then that works to insert the numbers. And I think I have figured out how to locate where to insert my numbers. But I need some help with the find/replace and the looping.
The pages are formatted with arrows(?) on each side, so I couldn't figure out how to search for both the arrows AND wildcard numbers. I think this will work.
If anyone can help me to search for the text ">> PAGE", then select the found text AND 8 characters to the right. Then I need to replace that selection with the numbers 1 - (up to around) 6,000. There are alwas 8 spaces between the E in PAGE and the ending << arrows, so I can replace PAGE with 6 spaces then a number is 1-9, 5 spaces then number if 10-99, etc. So for exxample, this is what I need as a finished product:
>> PAGE 6 <<,
>> PAGE 35 <<,
>> PAGE 257 <<,
>> PAGE 2456 <<
(There are always 17 spaces between the first > and the last <)
I've been editing reports all morning, so I hope this post is clear enough to understand.
As always, THANK YOU for all assistance.
If you're still out there or anyone else.
I'm still having a little trouble with my project. I need to find existing page numbers and renumber them. Part of the problem is that the word "page" appears on the document in other places than just the headings that I need to change. Also, I need the actual numbers right justified - not simply entered in place. Finally, sometimes there are already numbers in place and sometimes just the word PAGE with no numbers.
I have an if-then that works to insert the numbers. And I think I have figured out how to locate where to insert my numbers. But I need some help with the find/replace and the looping.
The pages are formatted with arrows(?) on each side, so I couldn't figure out how to search for both the arrows AND wildcard numbers. I think this will work.
If anyone can help me to search for the text ">> PAGE", then select the found text AND 8 characters to the right. Then I need to replace that selection with the numbers 1 - (up to around) 6,000. There are alwas 8 spaces between the E in PAGE and the ending << arrows, so I can replace PAGE with 6 spaces then a number is 1-9, 5 spaces then number if 10-99, etc. So for exxample, this is what I need as a finished product:
>> PAGE 6 <<,
>> PAGE 35 <<,
>> PAGE 257 <<,
>> PAGE 2456 <<
(There are always 17 spaces between the first > and the last <)
I've been editing reports all morning, so I hope this post is clear enough to understand.
As always, THANK YOU for all assistance.