Click here to Skip to main content
12,956,198 members (101,784 online)
Click here to Skip to main content
Add your own
alternative version


7 bookmarked
Posted 18 Oct 2006

Visual Studio Addin to run Macros

, 18 Oct 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
A Visual Studio add-in to simplify running your macros

Sample Image - maximum width is 600 pixels


Macros Manager is a Visual Studio .NET 2003 Addin that launch specified macros from a Windows Form. Having been creating and using many macros in Visual Studio .NET 2003, I was looking for a way to call them easily.

I first added menus with a Shortcut on my macros into Visual Studio, but many times the design layout disappeared. Then I had no choice to find another way to call my macros quickly. That's why I have made Macros Manager.

Actually, it just execute macros, but you can improve it to manage macros, depending on your needs. 

Using the code

Macros Manager is an addin. You should be familiar to addins before install or improve Macros Manager. If you want to use it, simply install it with the demo project.

After installing the addin, you will have a new menu in the Visual Studio .NET 2003 tool's menu:

Sample Image - maximum width is 600 pixels


Macros Manager is simple to use. Behind it there is a mapping file, written in XML, that let you configure which macro you want to launch by clicking on a node in the treeview in the form. Obviously, the macro must exist.

You can also create group nodes if you want to create a structure for your macros.  There is no level limitation.

Example of the XML file:

<?xml version="1.0" encoding="iso-8859-1" ?>
   <Node1 ImageIndex = "0" Name="Macros group 1">
      <Macro ImageIndex = "1" Name="Show Hello 1" 

             MacroStrongName="Macros.MyMacros.Functions.Hello1" />
      <Macro ImageIndex = "1" Name="Show hello 2" 

             MacroStrongName="Macros.MyMacros.Functions.Hello1" />
   <Node1 ImageIndex = "0" Name="Macro group 2">
      <Macro ImageIndex = "1" Name="Show hello 3" 

             MacroStrongName="Macros.MyMacros.Functions.Hello1" />

Points of Interest

Another way to manage macros in Visual Studio, without changing the IDE layout.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

France France
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralMacro Explorer Pin
Kevin McFarlane18-Oct-06 10:35
memberKevin McFarlane18-Oct-06 10:35 
GeneralRe: Macro Explorer Pin
S P S18-Oct-06 17:08
memberS P S18-Oct-06 17:08 
GeneralRe: Macro Explorer Pin
joujoukinder19-Oct-06 8:55
memberjoujoukinder19-Oct-06 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 18 Oct 2006
Article Copyright 2006 by joujoukinder
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid