VBA Shell function in Office 2011 for Mac
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to launch a shell script from a VBA macro in Word 2011 for Mac that will run in a Terminal window. I have tried using both the Shell function and the MacScript function, but the VBA interpreter doesn't seem to be able to find the script in either case. According to the VBA reference documentation, the following should work: RetVal = Shell("Macintosh HD:Applications:Calculator.app", vbNormalFocus) This produces a run-time error 53 'File not found'. Any suggestions? 回答1: The Shell() VBA function on Mac appears to require the full