Macros and custom defined functions can be written in VBScript using the Edit Module dialog. The module is saved with the application.
The Edit Module dialog is opened from the Tools menu.
Tip: It is possible to protect the Edit Module dialog with a password. To set a password, click the Module Password button on the Security page of the Document Properties dialog.