VBA issues between desktop excel and MAC

Simmo1313

New Member
Joined
May 4, 2015
Messages
39
Hi all,

I had a sheet created for me that has some push buttons for login and other tasks I run excel 2016 from my laptop..

When I gave the sheet to someone with a MAC they did some work saved it and sent it back to me.

I then found none of the push buttons work.

I viewed the code and matched the old version up against the new and found in the drop down menus at the top of the relevant sheet code had changed

Original working version has CommandButton2 and Click as the two drop down menus (left and right respectively) and then below that is all the private sub code

No longer working version has (General) and CommandButton2_Click as the two menu options, all the private sub code is the same.

Was wondering if anyone could shed some light on;

A) why this would happen, and
B) how do I fix it as the original menu options are no longer available in the drop down menus

Much appreciated
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Pretty simple....MAC and PC don't like each other !!
MAC will save the workbook differently to PC, so I'd suggest if you are going to cross platform, don't send workbooks with code !!
 
Upvote 0
Excel on the Mac should never change your code. However, if these are Active-X controls and the Mac user saves the file then content will be stripped out because there is no Active-X support for Mac OS. Use legacy controls only if you want your controls to be cross-platform.
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,122
Members
452,545
Latest member
boybenqn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top