ToolBar Question

  • Thread starter Thread starter Fan924
  • Start date Start date
F

Fan924

What does this doat the top of a Toolbar?

Option Explicit
Public Const ToolBarName As String = "MyToolbarName"
 
You are referring to VBA code.

The Option Explicit tells VBA that all variables must be declared, which
helps avoid naming mistakes.

The Public Const is just creating a constant and loading it with a value. It
would seem that that constant will be used as the name of a toolbar created
later.
 
If I create say 3 different toolbars, does this appear the same on all
3?

Or does each toolbar have a unique name?
"MyToolbarName"
"MyToolbarName2"
"MyToolbarName3"
 
You can create one toolbar with many control buttons, or many toolbars, each
with many buttons.
 
Back
Top