Create an Excel Shortcut Menu That Writes Selections to a Text File
It doesn't take much code to add a command to a shortcut menu in Excel, but the menu objects have strange names so it's not intuitive, to me at least. The trickiest part is just sorting out how it's...
View ArticleTurn Off Automatic Conversion of Office 2003 Projects into 2007 Projects
In Visual Studio 2008, when you open a Microsoft Office 2003 project, by default it starts the project migration wizard if you have the 2007 Microsoft Office system installed on your development...
View ArticleActivating a Custom Tab on the Ribbon When a Document Is Opened
A lot of people seem to want to make a certain tab or control on the Ribbon active programmatically using VSTO. It makes sense that a developer would want to select the custom tab if the controls that...
View ArticleWord Add-ins Part 1: Clear the Ribbon Except for My Controls
You can use VSTO to easily customize the Ribbon to show only the controls you want to display. This video shows how to clear the Ribbon in Microsoft Office Word so it contains only a single button. The...
View ArticleWord Add-ins Part 2: When Add-ins Collide
When you build a VSTO add-in project, it installs the add-in on your development computer. Even if you close that project and start another, or even close Visual Studio entirely, all add-ins you have...
View ArticleWord Add-ins Part 3: Searching for Text Strings and Adding Comments
You can search the text in any open Microsoft Office Word document for specific strings if you put the code in a VSTO application-level add-in. When you find an instance of the string, you can perform...
View Article