Opening Excel VBA userform on Mac - Runtime Error 5

Blobajob88

Board Regular
Joined
Mar 27, 2020
Messages
56
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

Could someone please help? I've created an excel VBA program with userforms and it works fine on my windows laptop but when I try to open it on a mac, I get a run-time error 5. Does anyone know why this would be and what I can do to overcome it? Please see snippets attached of the error message and the line of code it fails at.



Screenshot 2.JPGScreenshot 1.PNG
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I can't see anything wrong with that line of code (I can replicate it on my Mac and it runs without problems).

Any chance you can post the workbook somewhere for us to have a look at?
 
Upvote 0
Hi RoryA,

Thanks for the reply. I'm not actually sure how you upload workbooks on this forum but can do that if you know how?

The person's mac that I tried it on is using the M1 chip which uses the Rosetta emulator, could that maybe be an issue?

I've sent it to some of my friends who have macs and some could open and some couldn't, so I'm not sure if there is a setting that needs tweaked or something?
 
Upvote 0
You'd need to upload it to a site like OneDrive or Dropbox and then post the link here.

With Mac Excel anything is possible. :)

I assume you are not using the Rowsource property of any controls in your form, since that will not work.
 
Upvote 0
I can open that form without errors. I do note that one of your worksheets has activex controls on it, which won't work on a Mac.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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