Using the Code SamplesThis content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Help contains hundreds of code samples that show how to work with the programming features of Microsoft® Office. Wherever possible, these code samples were written not only for you to learn from studying how they work but also so you can use them directly in your custom applications.
Some of the examples use data in Northwind.mdb, a sample database that ships with Microsoft® Access. If you have not installed the Northwind sample database, you must do so to take full advantage of the examples.
You can use the Code Librarian to view and copy many reusable procedures. The Code Librarian includes a large starter database of prewritten code for standard routines for Office XP, Microsoft® Visual Basic® for Applications (VBA), Office XP Developer projects and the development environment. For details, see Sharing Code with the Code Librarian.
In Microsoft® Word, security is set by default to High, which means that the code will not run when you open the Word sample files. To use these files, you must change the security setting.
To change the security setting in Word
- Point to Macro on the Tools menu.
- Click Security, and then click either Medium or Low on the Security Level tab.
To run the scripting examples that use scriptlets, your browser's security settings must be set to Medium or Low.
The Issue Tracking sample application is included as a template when you install Workflow Services for SQL Server. You can use the Workflow Manager for SQL Server to create an instance of the Issue Tracking sample on your server, and it is ready to use. You can customize the application to your specific requirements or use it to learn how to create a new Workflow Application for SQL Server. For more information, see Issue Tracking Sample Application.