Defining names programatically

E

ep

I'm trying to define names in my add-in through my Excel.Application object's
..Names.Add method. This works fine if I define the names after some event,
like on the click event of a custom button, but I'd like to define these in
the OnStartupComplete method. When I try to do this though, my .Names throws
a InertopServices.COMException.

Any ideas on why I can't define names here?? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top