Редагувати

Поділитися через


Document.HasVBProject property (Word)

Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. Read-only.

Syntax

expression. HasVBProject

expression An expression that returns a Document object.

Remarks

This property is most useful in programmatically determining whether a document needs to be saved into a macro-enabled file format. If saved in another format, macros and code projects contained within the document may be lost.

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.