I had written a program to create a commandbar from VBA. It was in X4 and executed well. The program with
Dim CmdBar As CommandBarDim 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.
Anand Dixit said: I had written a program to create a commandbar from VBA. It was in X4 and executed well. The program with Dim CmdBar As CommandBarDim 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.
Hi Anand.
Check your references in Tools > References. Make sure they match the ones you have available in X4.
Specifically Microsoft Forms.
-John