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
56 results in vba, word [Clear]
OneCode Team - Microsoft
The VBAutomateWord example demonstrates how to write VB codes to create and automate a Microsoft Word instance
4 Star
(2)
Updated 3/2/2012
Released 3/2/2012
14,067 Downloads
OneCode Team - Microsoft
The VBAutomateWord example demonstrates how to write VB codes to create and automate a Microsoft Word instance
3.7 Star
(3)
Updated 3/2/2012
Released 1/21/2011
11,938 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
Learn how to use the strongly typed classes in the Open XML SDK 2.0 to convert a Word document including VBA code (with a DOCM extension) to a standard document (with a DOCX extension), without loading the document into Microsoft Word. This sample accompanies the article Converti
No Star
(0)
Updated 7/28/2011
Released 7/28/2011
4,007 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 auto-hyphenation in Microsoft Word 2010.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 code.Each code sample consists of approximately 5 to 50 line
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
766 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 new properties of the TextFrame object in Microsoft Word 2010 such as text rotation and warping.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 code
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
716 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 apply a quick style set in Microsoft Word 2010.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 code.Each code sample consists of approximately 5 to 50 l
5 Star
(2)
Updated 8/6/2011
Released 8/6/2011
927 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 export and import the text of a given range in a Microsoft Word 2010 document as fragments for use in other document.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here to incorporate dire
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
1,557 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 some of the features of the Find object in Microsoft Word 2010 such as ignore punctuation, ignore spaces, match prefixes and suffixes, and clear highlighting.This code snippet is part of the Office 2010 101 code samples project. This sample, along with ot
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
1,094 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 ApplyDocumentTheme method and ApplyQuickStyleSet method in Microsoft Word 2010.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 code.Each code sample
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
801 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 list information programmatically about each entry of a combo box content control containing a set of colors by using the ContentControlListEntries method in Microsoft Word 2010.This code snippet is part of the Office 2010 101 code samples project. This s
No Star
(0)
Updated 8/6/2011
Released 8/6/2011
1,717 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 56 Items