Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

How to create an Add-In for a macro in MSP 2010

$
0
0

I currently have many macros in Microsoft Project 2003 that are assigned to buttons on the toolbar.  I want to transfer these macros and buttons (own created images) onto the MSP 2010 Ribbon.  I am told the way to do that is to create an Add-In in Visual Studio and add the user defined image for the button in.

I am very new to Visual Studio 2010 but I have managed to create a user defined image for my button and add it into the ribbon.  I have just created a simple callback routine that displays a message box when the button is selected - that all works fine.  But when I try to add all my original code for the macro into the callback for this button in Visual Studio 2010 it won't compile because there are numerous references to MSP objects in it.  I have added "Import MSProject = Microsoft.Office.Interop.MSProject" at the top and put "MSProject." in front of the MSP objects, but there are still loads of errors.  Am I missing somthing?  Is this not how to develp Add-Ins?  Any help would be gratefull received.


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>