D
DM
Hi,
I need a way to trick a function to return more than one value. Basically I
have a function which works conceptually like this (of course, my function
is more complicated):
=====================================================
Function My_Function (var1 as Double, var2 as Double, var3 as Double)
(code1)
Calc1=var1*var2
Calc2=var1*var2
(code2)
End Function
=====================================================
I need a way to "extract" both Calc1 and Calc2 in Excel. One way I was
thinking was to create two functions, but this would be a waste of
resources, since there are a lot of calculations in (code1). One the other
hand, for any updates, there are two functions to change, instead of one.
Any ideas? Thanks.
I need a way to trick a function to return more than one value. Basically I
have a function which works conceptually like this (of course, my function
is more complicated):
=====================================================
Function My_Function (var1 as Double, var2 as Double, var3 as Double)
(code1)
Calc1=var1*var2
Calc2=var1*var2
(code2)
End Function
=====================================================
I need a way to "extract" both Calc1 and Calc2 in Excel. One way I was
thinking was to create two functions, but this would be a waste of
resources, since there are a lot of calculations in (code1). One the other
hand, for any updates, there are two functions to change, instead of one.
Any ideas? Thanks.