Thanks for your reply. Sorry about the looks of the code... i keep changing it around trying to get it to work. the "l" was for "local"... but i'm a java developer and that's my companies normal standards
for now i'm sure the values are always numbers. in the simple case i'm trying to get working let's assume that we're dealing with 1 file, 1 cell, and you know there's a number there. I thought it had to do with using the ExecuteExcel4Macro command so i tried a different method below but still no go! i had a msg point right before the end of the function and i KNOW that it has no problem getting the value from the other workbook... it just doesn't get displayed properly in the cell. "#VALUE!"
I also thought it might have had something to do with the datatype of the return value so that's when i started converting the value to an integer.
any help would be much much appreciated! maybe you can try creating 2 workbooks and pasting this code into a function. call the file 1.xls and see if it works.
thanks
Bookmarks