From the VB Object Browser:

Function MacScript(Script As String) As String
   Member of VBA.Interaction
   Executes an AppleScript script

Attempting to run:

MacScript "tell application ""Finder"" to set _
      the position of the item named ""Bob"" to {72, 47}"

results in a "Run-time error '5': Invalid procedure call or argument".

Do you know why this function is even here? Is it some freakish hold over from porting VBA to the Mac? If you know, please /msg me and I'll add it here.

Log in or register to write something here or to contact authors.