Office code samples

Download Office code samples and applications. New samples are added frequently in JavaScript, C++, C#, and VB.NET so check back often.You can also download code samples for other products like apps for Office, apps for SharePoint, Windows Azure, Silverlight, SharePoint, Windows 8, Windows Phone, or explore the official Visual Studio 2010 C#, VB.NET, and 101 LINQ 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.
Sort by: rss
13 results in vba, onenote [Clear]
Microsoft Office Developer Documentation Team

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
- Microsoft
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
5 Star
(2)
Updated 8/3/2011
Released 8/3/2011
1,266 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to retrieve a Microsoft OneNote 2010 notebook and then perform a keyword search of that notebook, returning the results as XML.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here to incorpora
1 Star
(1)
Updated 8/3/2011
Released 8/3/2011
868 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to find the first section of a Microsoft OneNote 2010 notebook, create a new page, and then set the title and page content.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here to incorporate d
5 Star
(2)
Updated 8/3/2011
Released 8/3/2011
3,099 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to use the GetHierarchy method to get attribute data about the sections in Microsoft OneNote 2010 notebooks from any VBA host (excluding OneNote).This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offere
No Star
(0)
Updated 8/3/2011
Released 8/3/2011
1,185 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to get metadata and data about available Microsoft OneNote 2010 notebooks using the GetHierarchy method in any VBA host (excluding OneNote).This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here
5 Star
(1)
Updated 8/3/2011
Released 8/3/2011
1,004 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to use various methods to close, open, and then display a Microsoft OneNote 2010 notebook in a new window.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here to incorporate directly in your c
4 Star
(1)
Updated 8/3/2011
Released 8/3/2011
1,311 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample demonstrates the QuickFiling dialog to select an object, such as a Page object, in Microsoft OneNote 2010 by using a built-in dialog and return various properties.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is
No Star
(0)
Updated 8/3/2011
Released 8/3/2011
1,404 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to use the Windows and Window objects to retrieve information about the currently open Microsoft OneNote 2010 window(s) such as notebook, page, and section IDs.This code snippet is part of the Office 2010 101 code samples project. This sample, along with oth
No Star
(0)
Updated 8/3/2011
Released 8/3/2011
759 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to get metadata from the pages of a section in Microsoft OneNote 2010 notebooks such as the section name, its ID, and last date it was modified.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered
No Star
(0)
Updated 8/3/2011
Released 8/3/2011
1,173 Downloads
Microsoft Office Developer Documentation Team

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
- Microsoft
This sample shows how to iterate through a Microsoft OneNote 2010 notebook, its first section, and finally get the first page and outputs the page's content to a PDF file.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is off
No Star
(0)
Updated 8/3/2011
Released 8/3/2011
924 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 13 Items