Adds or updates a Macro object in the collection.
macros.Add(ByVal name As String, ByVal value As Variant = Empty, ByVal params As String = "", ByVal descr As String = "", ByVal envVar As Boolean = False) As IMacro
Required. Name of the macro. Names are compared without case sensitivity.
Optional. Value of the macro.
Optional. Parameters of the macro.
Optional. Macro description.
Optional. Whether the macro will be added as an environment variable when building. Note: This property does not take effect from script code until the build is restarted. Use a Set Macro action (see the Script.bld sample for a technique to dynamically generate a project with Set Macro steps and build it).
If the macro already exists, its properties are updated to the specified values.
Applies to Macros collection