

#Write vba code in excel for mac 2016 update
One of the affected people is running Catalina (10.15.3) and Excel for Mac 2019 (v16.35 - the latest update as of today’s date). Would anyone here happen to have any ideas? I thought about it being a permissions issue with writing to the above folder, but I had one of the affected people check the permissions of it, and they said it is set to ‘Read & Write’ - so that doesn’t appear to be culprit. But a few people are reporting the error, and I don’t understand what might be causing it. Also, many other people are using the workbook with no problems. On all the Mac’s I have tested my workbook on, it works fine. (My code creates a new folder inside the Data folder, and then saves an Excel file into that new folder.) But my code is written to save the file in a particular folder that should always be accessible by Excel, regardless of the sandbox limitation: My idea is to go through all my Excel for Windows tip pages and see if I can also get the VBA code working in Mac Excel. I know that starting with Excel for Mac 2016, Excel is “sandboxed”, meaning you cannot save files wherever you want via VBA code. In July 2011, I started working with Office 2011 on my first Mac computer. It only seems to happen on Excel for Mac 20.
#Write vba code in excel for mac 2016 how to
It does not appear that this error occurs on Excel for Mac 2011. I am trying to learn how to write macros for my job and we only use Apple products so this course has been very beneficial. This will become more apparent further into this guide to writing VBA. Run-time error ‘1004’: Method ‘SaveAs’ of object ‘_Workbook’ failed. Eventually, when the macro is written, the user may add or remove certain variables. For a few people, when this moment occurres, the VBA code in the workbook generates an error. In the first case, you can then check the value o result to see if it is vbyes or vbno. So, you need to do either: resultmsgbox ('hello'),vbyesno) Or. Therefore, you need to set a variable to accept the value returned. One of the things the workbook does is save a separate Excel file on the user’s computer in a very specific folder, the first time the file is opened on that computer. By enclosing the arguments in parentheses, you are asking the msgbox function to return a value. Thus, I am struggling to figure out what’s causing it. However, a few people on Mac are reporting an issue that I cannot reproduce on any of the Mac’s I have access to.

I released the first version of the file publicly back in November, and for most people, it is working fine. I’ve created a Macro-Enabled Excel workbook for using on Excel for Mac & Windows. This is my first time posting on this forum, and I'm not sure if this is the correct place to put this.
