Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.06 KB

Word.Template.VBProject.md

File metadata and controls

49 lines (28 loc) · 1.06 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Template.VBProject property (Word)
vbawd10.chm157941859
vbawd10.chm157941859
Word.Template.VBProject
deea632d-239f-700d-7a89-fdc0fae916ef
06/08/2017
medium

Template.VBProject property (Word)

Returns the VBProject object for the specified template.

Syntax

expression. VBProject

expression Required. A variable that represents a 'Template' object.

Remarks

Use this property to gain access to code modules and user forms.

To view the VBProject object in the object browser, you must select the Microsoft Visual Basic for Applications Extensibility check box in the References dialog box (Tools menu) in the Visual Basic Editor.

Example

This example displays the name of the Visual Basic project for the Normal template.

Set normProj = NormalTemplate.VBProject 
MsgBox normProj.Name

See also

Template Object

[!includeSupport and feedback]