VBA - Page Setup
Protected Document
This will generate an error if the document has protection
You cannot change the following if the document is protected
Settings the pagewidth property automatically changes the Papersize property to wdPaperCustom
From Edge
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext