Is VBA code a Mac different than VBA on a PC?

Hulton

New Member
Joined
Aug 1, 2011
Messages
1
I am going to start learning VBA and how to write macros, but I have a Mac (2010 model, I believe). I also have MS Office 2011 on the Mac. I was wondering if the syntax/code that you write on a Mac is different than it written on a PC? Ultimately, I need to be able to write VBA on a PC, but if its the same on both then its no problem. Also, I am new to programming. I know a little bit of HTML and the basics of SQL, if that helps.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
AppleScript is old news, what you had to use in Excel 2008 from which Microsoft had removed VBA.

In Excel 2011 for Mac, Microsoft has re-introduced VBA, and it's even finally the same version of VBA that Excel for Windows has been using all along. However, there are a substantial number of differences in how Excel itself behaves between the two platforms, and in how VBA interacts with these platforms. I've only done enough testing to know it's going to be a lot of work to make my stuff compatible.

Ron de Bruin has started documenting the differences between Mac and Windows Excel VBA in VBA code in Mac Excel 2011 and Windows Excel.
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,996
Members
449,093
Latest member
masterms

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