Is there a reason for not using Save As after processing? Much more efficient.
Printable View
Is there a reason for not using Save As after processing? Much more efficient.
I wanted the original document to stay open, save as closes the original.
Anyway, I get the same unexpected outcome using save as.
Actually, I can't get it to work properly anymore, the first time it did, but now it doesn't.
It seems to add the page number for each paragraph regardless of whether the paragraph has colored text in it.
That is, indeed, part of what it does (but it deletes those paragraphs' content at the same time) - and then it erases the left-over page# paragraphs. Either the errors you're getting result from changes you've made, or there's something in your document I haven't catered for. If you could post a copy, I can do some more testing.Quote:
Originally Posted by MacroShadow
Regarding the Open - vs Save As issue, you could, of course, re-open the original document afterwards. The Save As process is more efficient, though, as you avoid potentially having two large files open at the same time.
Thanks again for you offer to help.
I don't get it but now it works fine.
Thanks for weighing in, Paul... you've got a much simpler concept going on than what I was trying to accomplish.
MacroShadow: as far as the page numbers, I'm not sure if you're still curious about that. But you should look up the concept of pages on this forum. There are a *lot* of posts about it, and there is no really simple answer to this.
If what Paul has done is working for your documents, then I would cross the "pages concept" bridge another day. His code is certainly a simpler and more accessible approach than what I was attempting to do...
- Frosty aka Jason