Share via


Visual Basic Reference

AddToAddInToolbar Method

See Also    Example    Applies To

Inserts a button on the Add-In toolbar which references an add-in or Wizard.

Syntax

object.AddToAddInToolbar (sfilenameAs String, sprogidAs String, showontoolbar As Boolean, forceaddintoolbar As Boolean)

Part Description
object An object expression that evaluates to an object in the Applies To list.
sfilename Required. A string expression specifying the path to the add-in or Wizard and the name of its .Exe or .Dll file.
sprogid Required. A string expression specifying the programmatic ID (ProgID) of the add-in or Wizard.
saddinname Required. A string expression specifying the title of the add-in or Wizard.
showontoolbar Required. A Boolean expression specifying whether the add-in or Wizard referred to will appear on the Add-In toolbar. True = yes, False = no.
forceaddintoolbar Required. A Boolean expression specifying whether the Add-In toolbar is automatically displayed the next time Visual Basic is started. True = yes, False = no.