I’m migrating a spreadsheet I have from MS Excel to Calc, and my (VBA) macro is not working. I’ve tried to find a solution that explains what needs to change, but I haven’t been successful thus far.
In MS Excel, I run the script using:
myScriptResult = AppleScriptTask("/Users/user/myScripts/showFile.scpt", "myapplescripthandler", fileName)
Where fileName
contains a fully qualified path to the file I want pass to the showFile
script. However, I get an error on this line:
Error saving the document MySpeadsheet:
BASIC runtime error.
'35'
AppleScriptTask
Can anyone suggest, either through a link or a code snippet, how can I fix this, please?