Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

macros not working on macintosh

Status
Not open for further replies.

JTBorton

Technical User
Jun 9, 2008
345
DE
Hey, i'm having trouble getting macros to work on excel for macintosh systems. I think, based on what I've read online, that it's because I created them using active x controls. Or something like that, what ever that means. Is there some kind of patch that can be downloaded so that the macros will work correctly on a mac?

On the highlighted code I get the following error
Compile Error:
Automation Error

Code:
Sub AddMenus()
[highlight]Dim cMenu1 As CommandBarControl[/highlight]
Dim cbMainMenuBar As CommandBar
Dim iHelpMenu As Integer
Dim cbcCutomMenu As CommandBarControl


Thanks!



-JTBorton
Another Day, Another Disaster
 
Check this link. The article is called "VBA for MacIntosh goes away"

another one

Active X controls must be referenced in the VBA editor under "Tools > References". If you haven't added any references, then ActiveX shouldn't be an issue with your code.

That being said, try:
Dim cMenu1, cbcCustomMenu as CommandBarPopup 'for a drop down
or as CommandBarButton if you just need a menu item that runs a procedure.

GVF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top