Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Changing Protected Document's Properties with Visual Basic Macro


View products that this article applies to.

This article was previously published under Q213394

↑ Back to the top


Symptoms

In Microsoft Excel, you can change the document properties of a protected workbook through a Microsoft Visual Basic for Applications macro, even though you cannot manually change the document's properties.

↑ Back to the top


More information

To bring up the Document Properties dialog box (where Document is the name of your document), click Properties on the File menu. To protect your workbook, click Protection on the Tools menu, and then click Protect Workbook.

NOTE: When you protect the structure of the workbook, the Properties command on the File menu is no longer available.

↑ Back to the top


References

For more information about the BuiltinDocumentProperties property, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type builtindocumentproperties property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB213394, kbprogramming, kbprb, kbpending, kbdtacode

↑ Back to the top

Article Info
Article ID : 213394
Revision : 4
Created on : 9/27/2003
Published on : 9/27/2003
Exists online : False
Views : 256