mac-office

The MacScript function is not working well in Office for Mac 2016! Any ideas?

大憨熊 提交于 2020-01-09 07:58:07
问题 My macros use MacScript heavily, but it doesn't seem to be working in any of latest Office for Mac 2016 preview builds 回答1: The MacScript command, used to support inline Apple Scripts in Office for Mac 2011, is being deprecated. Due to restrictions of the sandbox, the MacScript command can no longer invoke other applications such as the Finder. Therefore we discourage the use of this command. For cases which require changing your existing code so it doesn’t use MacScript , you can use the

VB Macros for Office 2016 for Mac require Permissions every time they try to access a file! Is there any way to get around this behavior?

跟風遠走 提交于 2019-12-29 00:08:52
问题 Any VB Macro in Office 2016 shows a dialog box to the user asking for permission, every time the Macro tries to access a file! Is there a way to avoid it. 回答1: Unlike VB Macros in Office for Mac 2011, VB Macros in Office 2016 for Mac do not have access to external files by default. The Office 2016 for Mac apps are sandboxed and hence they lack the required permissions to access external files. Existing macro file commands are changed to prompt the user for file access if the app doesn’t

VB Macros for Office 2016 for Mac require Permissions every time they try to access a file! Is there any way to get around this behavior?

末鹿安然 提交于 2019-12-29 00:08:48
问题 Any VB Macro in Office 2016 shows a dialog box to the user asking for permission, every time the Macro tries to access a file! Is there a way to avoid it. 回答1: Unlike VB Macros in Office for Mac 2011, VB Macros in Office 2016 for Mac do not have access to external files by default. The Office 2016 for Mac apps are sandboxed and hence they lack the required permissions to access external files. Existing macro file commands are changed to prompt the user for file access if the app doesn’t

AppleScriptTask throwing an error 5 - invalid procedure call or argument

南笙酒味 提交于 2019-12-22 14:59:51
问题 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

VBA: Send mail via Outlook in Excel for Mac 2011

丶灬走出姿态 提交于 2019-12-11 16:48:17
问题 On a Mac, Office 2011 (latest patches) I want to send a mail via Outlook Set mailer = CreateObject("Outlook.Application") which gives the error ActiveX component can't create object which seems believable since there is no ActiveX on the Mac. I tried to find alternative solutions, but they are quite dated (2011) the macro has to work on both Mac and Windows What is currently the best VBA way to send a mail via Outlook in Office Mac 2011? 回答1: cf/ http://msdn.microsoft.com/en-us/library

How can I determine if my VB code is running on Office 2016 for Mac?

二次信任 提交于 2019-12-07 12:30:52
问题 Is there a conditional that I can use to differentiate if my Macro is running on Office 2016 for Mac or Office for Mac 2011 回答1: In Office 2016 for Mac, there is a new conditional called MAC_OFFICE_VERSION to test which VB version the user is running. The following example shows how it to use it in your code: Sub VersionConditionals() #If MAC_OFFICE_VERSION >= 15 Then Debug.Print "We are running on Mac 15+" #Else Debug.Print "We are not running on Mac 15+" #End If #If Mac Then Debug.Print "We

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

How can I determine if my VB code is running on Office 2016 for Mac?

て烟熏妆下的殇ゞ 提交于 2019-12-05 20:02:53
Is there a conditional that I can use to differentiate if my Macro is running on Office 2016 for Mac or Office for Mac 2011 In Office 2016 for Mac, there is a new conditional called MAC_OFFICE_VERSION to test which VB version the user is running. The following example shows how it to use it in your code: Sub VersionConditionals() #If MAC_OFFICE_VERSION >= 15 Then Debug.Print "We are running on Mac 15+" #Else Debug.Print "We are not running on Mac 15+" #End If #If Mac Then Debug.Print "We are running on a Mac" #Else Debug.Print "We are not running on a Mac" #End If End Sub Note: The "#If Mac"

VB Macros for Office 2016 for Mac require Permissions every time they try to access a file! Is there any way to get around this behavior?

ぃ、小莉子 提交于 2019-11-28 12:29:21
Any VB Macro in Office 2016 shows a dialog box to the user asking for permission, every time the Macro tries to access a file! Is there a way to avoid it. Unlike VB Macros in Office for Mac 2011, VB Macros in Office 2016 for Mac do not have access to external files by default. The Office 2016 for Mac apps are sandboxed and hence they lack the required permissions to access external files. Existing macro file commands are changed to prompt the user for file access if the app doesn’t already have access to it. This means that macros that access external files cannot run unattended; they will