Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
what is wrong with this code? (when used in the excel_addin)
Where is that code from and how are you invoking it in Excel when it works as a stand alone?NA_AB;162105 Wrote: hey friends, public int addme(params object[] list) { // sum all the integers included in list int sum = 0; foreach (object o in list) if (o.GetType() == typeof(int)) sum += (int)o; return sum; } this code works fine as a stand alone code but when am trying to invoke the "addme" function from excel by saying "=addme(10,20,30)" or "=addme(10,20)" in the excel cell, it is not returning me the sum. All I see is "#VALUE!" in that excel cell. kindly let me know what should be done in this regard... -- The Code Cage Team Regards, The Code Cage Team 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=45076 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is wrong with this code? | Excel Programming | |||
What's wrong with this code? | Excel Programming | |||
What is wrong with the code? | Excel Discussion (Misc queries) | |||
What the F@#% is wrong with this code?? | Excel Programming | |||
Can someone tell me what is wrong with this code? | Excel Discussion (Misc queries) |