Retrieving Page Properties in a Protected Document

S

Stuart Troy

Is there a way to programatically retrieve the page orientation on a
protected document?

I have a protected document. I need to obtain it's page orientation ie.
portrait or landscape. Then my code changes the zoom to optimize viewing.

When I try to programatically retrieve the page properties (to determine the
page orientation) I get an error, stating that the page properties are
unavailable because the document is protected.

I would prefer NOT to unprotect then reprotect the document to resolve this.

Thanks for reading.
Stuart
Sydney, AUSTRALIA
 
D

Doug Robbins - Word MVP

Hi Stuart,

Still at Brookvale Insurance Brokers?

I think that you will not be able to avoid unprotecting the document, but
code can be used to do this.

The code for doing it is in the article "How to enable the spellchecker in a
protected document" at:

http://www.word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
Top