Richie(UK)
MrExcel MVP
- Joined
- May 17, 2002
- Messages
- 3,329
Hi all,
OK, a brief outline of the scenario. I'm creating a small add-in containing a collection of various routines. The routines are accessed via a menu that is added to the Worksheet Menu Bar (using a sheet-driven routine from the VBA Programmers Reference by Mssrs Bullen & Bovey et al).
During the development phase of creating the add-in the workbook was actually maintained as a workbook, rather than an add-in, so that I could easily modify the menu details on the relevant sheet.
Now to the problem. Since saving the workbook as an add-in one of the routines (and only one as far as I can tell) has refused to work. I receive the "Wrong number of arguments or invalid property assignment." error. If I copy the relevant code to a new workbook it runs fine, if I change the add-in back to a workbook it runs fine, but as an add-in ...
What's really weird is that even if I comment-out all of the code in the routine and just add a simple messagebox line I still get the error!
Anybody ever come across this sort of situation before?
More importantly, does anybody know how to resolve it?
I regularly frequest two Excel forums and this query has also been posted here:
http://www.ozgrid.com/forum/viewthread.php?tid=9263&page=1#pid43771
Before responding, please check for any replies on that thread - I have no wish to waste anybody's time going over ground that has already been covered.
OK, a brief outline of the scenario. I'm creating a small add-in containing a collection of various routines. The routines are accessed via a menu that is added to the Worksheet Menu Bar (using a sheet-driven routine from the VBA Programmers Reference by Mssrs Bullen & Bovey et al).
During the development phase of creating the add-in the workbook was actually maintained as a workbook, rather than an add-in, so that I could easily modify the menu details on the relevant sheet.
Now to the problem. Since saving the workbook as an add-in one of the routines (and only one as far as I can tell) has refused to work. I receive the "Wrong number of arguments or invalid property assignment." error. If I copy the relevant code to a new workbook it runs fine, if I change the add-in back to a workbook it runs fine, but as an add-in ...
What's really weird is that even if I comment-out all of the code in the routine and just add a simple messagebox line I still get the error!
Anybody ever come across this sort of situation before?
More importantly, does anybody know how to resolve it?
I regularly frequest two Excel forums and this query has also been posted here:
http://www.ozgrid.com/forum/viewthread.php?tid=9263&page=1#pid43771
Before responding, please check for any replies on that thread - I have no wish to waste anybody's time going over ground that has already been covered.