Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Invalid procedure call or argument error when opening add-in

Posted on 2014-01-27
5
Medium Priority
?
356 Views
Last Modified: 2014-01-27
Hi experts:

I cannot open the .xla file with Excel 2010.  When I double click the .xla file, I first got asked whether I want to enable macro, which is expected and I answer yes, but then this error message appears: "Invalid procedure call or argument" which I click OK on. After this the Add-in  tab does not show up at the top of the screen although I can still click on Developer->Visual Basic to view the code of the add-in.

I used to use Excel 2003 and recently changed to 2010 and everything had been running fine until today, The QA guy who is accessing the same .xla file uses Excel 2003. He might have done something, but I am not sure.

Please help.
0
Comment
Question by:sdc248
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Ken Butters
ID: 39813074
Did you mean to attach the xla file?

Please attach it for review.
0
 

Author Comment

by:sdc248
ID: 39813129
I cannot attach the .xla file. It's huge.

I have backed up my new code and tried open the original version, which everyone else has no problem opening (including myself before today), but am getting same error. So I think it's my Excel client that is having issues.
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39813199
Did you try rebooting your computer?

If the reboot doesn't fix the problem, can you view the add-in code? You do so by opening the VBA Editor with ALT + F8, and then double-clicking one of its module in the Project Explorer pane on the left of the VBA Editor window. Having done that, then use the Debug...Compile VBAProject menu item to identify which statement is causing problems.
0
 
LVL 19

Assisted Solution

by:Ken Butters
Ken Butters earned 500 total points
ID: 39813257
It is purely guesswork as to what could be causing the problems without being able to see or test the code.  

One possibility is that the XLA refers to a dll or some external library that you do not have installed on your machine, but that is installed on some of the other machines where it works.
0
 

Author Comment

by:sdc248
ID: 39813376
Thanks all for you help.

At one point, I closed up the workbooks and the Excel client, and deleted an EXCEL.EXE item from Windows Task Manager. After this, I started over and everything is running fine now.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question