Navigation:  Object Model Reference > Application Object >

Macros Property

Previous pageReturn to chapter overviewNext page

Provides the IMacros interface of the Macros collection.

 

 

Syntax

 

Application.Macros(ByVal type As MacroTypeEnum) As IMacros

 

Arguments

 

Application

       Application object

 

type

       Required.  The macro collection to retrieve. The values for type are:

Constant

Value

Description

vbldMacroAll

-1

A collection of all unique macros, with highest precedence for macros with same name in multiple collections.

vbldMacroTemporary

0

All temporary macros (not persisted between session; passed in on the command-line or created or loaded during a build)

vbldMacroProject

1

All project macros (saved with project file).

vbldMacroGlobal

2

All global macros.  By default, global macros are loaded/saved from/to VisBuildPro.macros in the configuration files path.

vbldMacroSystem

3

All system macros (initialized internally; read-only)

 

See Also

 

Applies to Application object