Convert Windows VBA to Mac

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,825
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have an Excel program written on a PC, which works as expected.

However, when a mac users runs it, they encounter an error:

Code:
Run-time error '429'

ActiveX component can't create object

1. Is this error message indicating my program contains ActiveX objects? I specifically added Shapes as buttons, not ActiveX buttons.

2. How easy is it to convert the program so that it can run on a mac?

Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Yes, but it isn't necessarily anything to do with controls on a sheet.

Entirely depends on your code.
On my first point, what could it be relating to, if it's not about the controls on a sheet?
 
Upvote 0
The main thing that springs to mind is CreateObject which is ActiveX.
 
Upvote 0
Solution
The main thing that springs to mind is CreateObject which is ActiveX.
Thanks.

I googled and realised my code contains a dictionary, even though it was late bound, it won't work on a mac.

On a similar note, I know ActiveX objects (like a button) aren't compatible between 32bit and 64bit versions of Excel.

If CreateObject was used in a 32bit program, would it work on a 64bit version?
 
Upvote 0
As far as I know, but I've never used 64bit versions of Office.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

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