Office code samples
Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
This sample was verified and tested by Microsoft Office Developer Documentation Team.
Microsoft Office Developer Documentation Team
- Microsoft
Microsoft Office Developer Documentation Team MSFT Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience. View samples
Learn how to create add-ins for Microsoft Word 2010, PowerPoint 2010, and Excel 2010 by using Visual Basic for Applications (VBA). Examine when VBA might be the best choice for your add-in and explore several sample tasks that can be included in VBA add-ins for Microsoft Office 2
|
(4)
Updated 4/7/2011
Released 4/5/2011
7,480
Downloads
|
|
|
The CSVstoVBAIntero
|
(2)
Updated 5/5/2011
Released 1/21/2011
12,024
Downloads
|
|
|
The VBVstoVBAIntero
|
(2)
Updated 5/5/2011
Released 1/21/2011
11,309
Downloads
|
|
|
This sample demonstrates how to call a method in a document-level customization for Microsoft Office Excel from Visual Basic for Applications (VBA) code in the workbook.
|
(1)
Updated 2/19/2011
Released 2/18/2011
5,845
Downloads
|
|
|
This sample demonstrates how to call a method in a document-level customization for Microsoft Office Excel from Visual Basic for Applications (VBA) code in the workbook.
|
(1)
Updated 9/7/2012
Released 9/7/2012
3,143
Downloads
|
|
|
This sample demonstrates how to call a method in a document-level customization for Microsoft Office Excel from Visual Basic for Applications (VBA) code in the workbook.
|
(1)
Updated 9/7/2012
Released 4/3/2012
6,890
Downloads
|
|
This sample was verified and tested by Microsoft Office Developer Documentation Team.
Microsoft Office Developer Documentation Team
- Microsoft
Microsoft Office Developer Documentation Team MSFT Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience. View samples
This sample shows how to iterate through the first notebook in Microsoft OneNote 2010, then its first section, and finally gets the first page and outputs the page content from a VBA host (excluding OneNote).This code snippet is part of the Office 2010 101 code samples project. T
|
(2)
Updated 8/3/2011
Released 8/3/2011
1,257
Downloads
|
|
|
I have a spreadsheet with VBA code that produces some data. This runs everyday but I wanted to avoid saving the code everyday; this is for confidentiality issues, storage space, or simply to avoid data to be lost if the code is run by mistake.The code I am using is an extension o
|
(2)
Updated 10/15/2012
Released 10/15/2012
|
|
|
This examples shows how to schedule an Access macro to run automatically, using the windows scheduler and a .bat archives.
|
(0)
Updated 6/25/2015
Released 6/25/2015
533
Downloads
|
|
|
The VBAutomateWord example demonstrates how to write VB code to create a Microsoft Visio instance
|
(1)
Updated 12/4/2012
Released 12/4/2012
4,823
Downloads
|
|
Download Visual Studio