Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attach a toolbar to Excel via C#

Status
Not open for further replies.

JasonEnsor

Programmer
Sep 14, 2010
193
GB
Hi,

I have created an Excel Template that use's Marco's, this was written in Excel 2003 and all the Macro's are attached to a custom made toolbar.

However i have updated the template and items on the toolbar but some documents have come back for me to edit and the toolbar is the old version from the original template.

What i am hoping to do is to create a C# application that i can run that will delete the original customised toolbar on a document and replace it with the new version i have created/will be creating. Does anyone have any ideas of how i could do this? Any code that people could share with me as to how to check for a custome toolbar, delete it then attach a new one to it. How to attach vba modules or write vba modules in c#.

Many Thanks

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top