Microsoft Office 2000 Developer |
The WinAPI Viewer application enables you to browse through the declares, constants, and types included in any text file or Microsoft® Jet database. After you find the procedure you want, you can copy the code to the Clipboard and paste it into your VBA application. You can add as many procedures as you want to your application.
For more information about using WinAPI in your code, see Chapter 10, "The Windows API and Other Dynamic-Link Libraries" in the Microsoft Office 2000/Visual Basic Programmer's Guide.
To view an API file
To load a text file into the viewer, click File | Load Text File, and choose the file you want to view.
Note If the text file you are opening is large, you may be prompted to convert the file to a database. This will make the WinAPI Viewer much faster. For more information, see Converting Text Files to Access Database Files.
To load a database file, click File | Load Database File.
Tip When you open the WinAPI Viewer, you can automatically display the last file you viewed by selecting View | Load Last File.
To add procedures to your VBA code
All of the items in the Selected Items list will be inserted in the active project code sheet that most recently had the cursor.
-or-