I am working on excel with multi sheets and I have created a test.bas file which contains a simple function such as
I go to VBA window and I import the file as module. When I import it at a new worksheet the results are correct. When I import the module at my current worksheet (multi sheets) the value which I get from Test is wrongPlease Login or Register to view this content.
eg. New blank worksheet: A1=something, B1=11, C1=1.5, D1=51.5 then =Test(A1;B1;C1;D1) ----> correct value 1648.5
old worksheet (multi sheets):same as above -----> wrong value 580.5
Values A1...D1 at 2 excel files are the same!
What am I doing wrong?
Bookmarks