Add commandbar problem

X

X-Men

I am writing my first Excel Add-in by following instructions from MSDN.
("Tips and Tricks: Building Microsoft Office Add-ins with Visual C# .NET and
Visual Basic .NET")
I did exactly the same as in the article, but VS throw me the following
exception in function AddWordToolBar, to be more precise:
word.CommandBars.Add method. Below is the error description:
"A first chance exception of type 'System.ArgumentException' occurred in
testaddin1.dll

Additional information: The parameter is incorrect."

Thanks for you help in advance.
 

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