office-2016

AppleScriptTask throwing an error 5 - invalid procedure call or argument

旧街凉风 提交于 2019-12-06 06:22:00
I'm facing a problem on Mac 2016 Powerpoint. In my VBA module I need to run an applescript. As we cannot use MacScript anymore I followed RonDeBruin's explanation to use AppleScriptTask. My Applescript is working fine on his own but when I try to call it like this : AppleScriptTask("hello.scpt", "myhandler", "hello") With in my apple script on myhandler(paramString) say paramString End myhandler It gives me an error 5 - Invalid procedure call or argument my script is placed in Library/Application Scripts/com.microsoft.Powerpoint is this path alright? Thank you for your help I did get that

'FileDialog' type is not defined in MS Access

青春壹個敷衍的年華 提交于 2019-12-05 14:35:08
In Access 2016, I wish to display the File Open dialog, allowing users to select a CSV file to import. However, an error is being generated in relation to the line Dim FD as Office.FileDialog - Compile error: User-defined type not defined The below code has been copied (and edited slightly) from the example posted on MSDN . This example is listed as relevant for Office 2013 and later, yet the very first comment in the code (in relation to the variable type Office.FileDialog ) seems to contridict this - Requires reference to Microsoft Office 11.0 Object Library. Surely for Office 2013 you'd