Yes, WRow is dimensioned as an integer in the subroutine that has the GetP
call. I didn't want to include that entire subroutine as well because it's
also rather long. But it has lines:
Dimm WRow as Integer
Dim AnIBlk as Boolean
That is what is so puzzling to me about all this.
-Tony
"mudraker" wrote:
Tony
when you call GetP is the data that you are using to supply to Wrow a
Integer if it is not
you will get a mismath error
eg the following code errors because data in Macro1 is a Long number
and Wrow expecting a Integer number
sub Macro1
dim myLong as Long
myLong = 45
call Macro2(myLong)
end sub
sub Macro2(Wrow as Integer)
mycodehere
end sub
--
mudraker
------------------------------------------------------------------------
mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473
View this thread: http://www.excelforum.com/showthread...hreadid=535794