Quote:
Originally Posted by Guessed
An empty footer will still contain a paragraph mark (which is where the length of 1 comes from).
With regards to your (A) question, we don't know what document you are opening but it is possible that it contains macros or has a template attached that contains macros and the error could be coming from that source.
|
The document I try to open is from the folder hieraki and instantiated i the "doc" variable - it opens with the Msgbox telling me macros not allowed, but I can just MANUALLY click the OK-button in that msgbox and the code continues and works.
There IS in fact macros in all af the files in the folder hieraki - but how can I allow them to be opened WITHOUT that warning i the msgbox ?