Chapter 9 More WordBasic Techniques

The first two sections of this chapter introduce different ways macros can store and retrieve information. Settings files, document variables, document properties, and AutoText entries, described in the first section, provide storage for variable values after a macro has run. Sequential file access, described in the second section, provides quick access to text files.

The third section of the chapter describes how you can use macros to automate
forms. The fourth section documents the STARTER.WIZ template (Windows) or the STARTER WIZARD template (Macintosh) supplied on the Microsoft Word Developer's Kit disk. This template is a starting point for developing wizards and provides the basic interface shared by every Word wizard.

The fifth section describes techniques for successfully calling routines from dynamic-link libraries (DLLs), which you can use to increase the capabilities
of your WordBasic macros.

The last sections describe developing WordBasic macros that work across all the platforms that support WordBasic (Windows 3.x, Windows 95, Windows NT, and the Macintosh) and techniques for distributing and optimizing macros.

In this chapter: