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
55 results in VBA, word [Clear]
All-In-One Code Framework - Microsoft
The VBAutomateWord example demonstrates how to write VB codes to create and automate a Microsoft Word instance
(1)
Updated 3/2/2012
Released 3/2/2012
12,021 Downloads
All-In-One Code Framework - Microsoft
The VBAutomateWord example demonstrates how to write VB codes to create and automate a Microsoft Word instance
(2)
Updated 3/2/2012
Released 1/21/2011
11,326 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
(0)
Updated 7/28/2011
Released 7/28/2011
3,282 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
(0)
Updated 8/6/2011
Released 8/6/2011
535 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
(0)
Updated 8/6/2011
Released 8/6/2011
501 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
(1)
Updated 8/6/2011
Released 8/6/2011
670 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
(0)
Updated 8/6/2011
Released 8/6/2011
1,218 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
(0)
Updated 8/6/2011
Released 8/6/2011
591 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 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
(2)
Updated 4/7/2011
Released 4/5/2011
3,983 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 Document class properties in Microsoft Word 2010 such as themes, track formatting, track revisions, and track moves.This code snippet is part of the Office 2010 101 code samples project. This sample, along with others, is offered here to incor
(0)
Updated 8/6/2011
Released 8/6/2011
484 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 55 Items