Results 1 to 10 of 10

Thread: [RESOLVED] CommandBar problem

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    44

    [RESOLVED] CommandBar problem

    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:
    1. Dim cbrMenuBar As CommandBar
    2. Set cbrMenuBar = CommandBars.Add("MyBar", msoBarTop, True, True)
    3. cbrMenuBar.Visible = True

    Thanks all
    Last edited by Santos7772005; Jan 30th, 2006 at 07:35 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width