Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cool11

macrumors 68000
Original poster
Sep 3, 2006
1,839
227
Is there any way of running properly, microsoft excel or word files that include macros, in our macs?
I have such files, they seem that they cannot run properly, as they do when you run them in windows.
 
  • Like
Reactions: cool11
Let my clarify the situation.

1st step:
1.jpg


I click enable.

2nd step:
I press a button inside excel, that it is supposed to run a macro.
Here you see what happens:
2.jpg


----

So, it does not run well.
A visual basic problem?
The same excel files, run properly in windows.
So what is missing on mac?
 
There are additional settings related to Visual Basic.
Set preferences for macro security in Office for Mac
https://learn.microsoft.com/en-us/deployoffice/mac/set-preference-macro-security-office-for-mac
You can write them directly into ~/Library/Preferences/com.microsoft.office.plist or use a configuration profile created with iMazing Profile Editor https://apps.apple.com/app/imazing-profile-editor/id1487860882
Getting started with iMazing Profile Editor https://imazing.com/guides/getting-started-with-imazing-profile-editor
 
  • Like
Reactions: gilby101 and cool11
I seem to recall reading somewhere that full Visual Basic capability is not available in the Mac Office 365 products. So documents with macros developed in Windows Office 365 won’t necessarily run on Mac.

My understanding could be full of poo, but I wouldn’t assume that it’s a permissions or configuration issue preventing you from running the macros.
 
  • Like
Reactions: cool11
Starting with Office 2016:
"Office 2016 for Mac is sandboxed
Unlike other versions of Office apps that support VBA, Office 2016 for Mac apps are sandboxed.
Sandboxing restricts the apps from accessing resources outside the app container. This affects any add-ins or macros that involve file access or communication across processes. You can minimize the effects of sandboxing by using the new commands described in the following section."
https://learn.microsoft.com/en-us/office/vba/api/overview/office-mac
 
  • Like
Reactions: cool11
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.