_Document.HasVBProject 属性

定义

返回一个 boolean 类型的值 ,该值代表文档是否具有附加的 Microsoft Visual Basic for Applications 项目。Returns a Boolean that represents whether a document has an attached Microsoft Visual Basic for Applications project. 只读的。Read-only.

public:
 property bool HasVBProject { bool get(); };
public bool HasVBProject { get; }
member this.HasVBProject : bool
Public ReadOnly Property HasVBProject As Boolean

属性值

Boolean

BooleanBoolean

注解

在以编程方式确定是否需要将文档保存为启用宏的文件格式时,此属性最有用。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.

适用于