What's an alternate for this in X5 VBA

I had written a program to create a commandbar from VBA. It was in X4 and executed well. The program with

Dim CmdBar As CommandBar
Dim CmdBtn As CommandBarControl

now does not run in X5. Says "User defined type not defined. I cannot find the way to set a variable for commandbar and commandbarcontrol. How can I do it in X5.

Parents
No Data
Reply
  • Hi Anand,

    you will notice that if you start to type "Dim CmdBar As " and then the drop down code tips appear, there is no entry for CommandBar. I went into the VBA Editor and clicked F2 and did a search on CommandBar and found CommandBars. It was shown under Application, but if I clicked on CommandBars to read more about it I got this message:

     I looked in References and there was no entry to tick for VGCore. Does this mean anything to you? Maybe John will know what is going on in X5.

    Best regards,
    Brian.

Children
No Data