title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Workbook.HasVBProject property (Excel) |
vbaxl10.chm199250 |
|
|
b4293266-40d9-a8a4-80ff-8b19ec7ed823 |
05/29/2019 |
medium |
Returns a Boolean that represents whether a workbook has an attached Microsoft Visual Basic for Applications project. Read-only Boolean.
expression.HasVBProject
expression A variable that represents a Workbook object.
This property is most useful in programmatically determining whether a workbook 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.
[!includeSupport and feedback]