3

image Calling Visual Basic from AppleScript

When calling Visual Basic from AppleScript there are some minor things to be aware of.

You can often record the script in the script editor, but sometimes you’ll find that the recorded script does not run and throws a compile error in the Office application. This is usually because the line breaks in the Visual Basic script cause completion errors in the VBA compiler.

This script code listing shows parameters spread over several lines to improve readability, but you should remove the line breaks if you experience this problem. Your experience may depend on the vintage of Visual Basic support, which Office ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.