I am trying to create a commandbar, but unfortunately I am getting the following error: User defined type not defined. And yes, I have set a reference to Microsoft 9.0 Object Library in the VBE. That was the first thing I checked....
The error occurs at the first line, where I try to declare the command bar:
VB Code:
Dim cbrMenuBar As CommandBar Set cbrMenuBar = CommandBars.Add("MyBar", msoBarTop, True, True) cbrMenuBar.Visible = True
Thanks all




Reply With Quote