When you try to use Microsoft Visual Basic for Applications (VBA) to change the properties of a document, you may receive one of the following error messages:
Run-time error '4248':
This command is not available because no document is open.
This command is not available because no document is open.
Run-time error '4605':
This method or property is not available because a document window is not active.
This method or property is not available because a document window is not active.
Run-time error '5941':
The requested member of the collection does not exist.
The requested member of the collection does not exist.