A
Alan Lambert
I'm trying to pass a textbox as a function parameter e.g.
Function IsValidData(tb As TextBox) as Boolean
'Do Stuff
End Function
but I get a "Run-time error '13': Type mismatch" error because VBA thinks I
am passing the default value.
Is there a way to do this successfully?
I'm using VBA 6.3 in Excel 2003.
Thanks in advance,
Alan
Function IsValidData(tb As TextBox) as Boolean
'Do Stuff
End Function
but I get a "Run-time error '13': Type mismatch" error because VBA thinks I
am passing the default value.
Is there a way to do this successfully?
I'm using VBA 6.3 in Excel 2003.
Thanks in advance,
Alan