Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 887 Bytes

Excel.Workbook.HasVBProject.md

File metadata and controls

33 lines (19 loc) · 887 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.HasVBProject property (Excel)
vbaxl10.chm199250
vbaxl10.chm199250
Excel.Workbook.HasVBProject
b4293266-40d9-a8a4-80ff-8b19ec7ed823
05/29/2019
medium

Workbook.HasVBProject property (Excel)

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

Syntax

expression.HasVBProject

expression A variable that represents a Workbook object.

Remarks

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]