Leith Ross Wrote:
Hello Dreamz,
Sorry about that. I should have included an example of how to call the
procedure. It can be 2 different ways.
CALLING EXAMPLES:
This assumes you have assigned values to variables prior to the call.
This method requires the variables be in order.
chHum = -<value-
chTr = -<value-
chDep = -<value-
Call Calculate (chDep, chTr, chHum)
This method uses the variables names. This allows you to enter them in
random order.
Calculate chTr:= -<value-, chDep:= -<value-, chHum:= -<value-
All the values must be entered for either example. If you leave one
out, you get the error message "Argument not optional".
Sincerely,
Leith Ross
i think we're getting somewhere.
my calculate procedure begins like this:
Code:
--------------------
Public Sub Calculate(ByVal chTr, ByVal chOO, ByVal chDep, ByVal chHum)
--------------------
and i used the second method.
it actually executed the procedure, but instead of pasting the list i
created, it pasted
calculate chTr:=true
and so on.
what happened?
--
dreamz
------------------------------------------------------------------------
dreamz's Profile:
http://www.excelforum.com/member.php...o&userid=26462
View this thread:
http://www.excelforum.com/showthread...hreadid=480621