How do I get VBA to determine if the active document is completely blank?
I am opening Word from another program (in this case, Access) and I need to insure that the document that is active is completely blank. If its not, I recognize that I have to open a new document with:
That may be good enough for you, but the be really sure, you would have to check in all of the Word Story Ranges as, the above still return 1 for a document that has text in the header and footer.
To see how to access all of the Story Ranges, see the article "Using
a macro to replace text where ever it appears in a document including Headers, Footers, Textboxes, etc.” at: