I don't know if this will fix your problem, but I had a similar error when adding an Excel reference. I had used a variable name in my project that was the same as one of the Excel constants. Chnaging the name of the variable fixed the problem. It works fine now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.