Skip to main content

101 Samples for Office 2010 Development

Microsoft Office 2010 gives you the tools needed to create powerful applications. These Visual Basic for Applications (VBA) code samples can assist you in creating your own applications that perform specific functions or as a starting point to create more complex solutions.

Each code sample consists of approximately 5 to 50 lines of code demonstrating a distinct feature or feature set in VBA. Each sample includes comments describing the sample, and setup code so that you can run the code with expected results or the comments will explain how to set up the environment so that the sample code runs.


Office 2010 101 Code Samples.zipOffice 2010 101 Code Samples.zip

Download all samples in a single zip file, or click each individual title below to download the VBA code for that specific snippet.


Excel 2010 | Office 2010 | OneNote 2010 | Outlook 2010 | PowerPoint 2010 | Visio 2010 | Word 2010

Excel 2010

PowerPoint 2010

By Download Type

Office SDKs and ReferencesOffice SDKs and References

Use these SDKs and references to leverage your Office development skills.

Office Downloads MarketplaceOffice Downloads Marketplace

Find the latest service packs and third-party downloads.

Code GalleryMSDN Developer Samples

Download sample applications and code snippets for Office.

Microsoft Download CenterMicrosoft Download Center

Search for more Office developer downloads here.