Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a form with a label control on it. I want to pass this as an argument to a function which does a test. The problem is that this gives me a type mismatch on this form which calls it. If you hover the mouse cursor over the argument which is passed to the function from the calling method in the form, it returns a string value. Any IDeas ? Public Function MyFunction( myLabel as Label ) As Boolean myLabel.Caption = "SomeString" MyFunction = True End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing a UDF as an argument to a UDF | Excel Discussion (Misc queries) | |||
Passing argument to another Sub | Excel Programming | |||
Passing Worksheet tab as an argument. | Excel Programming | |||
Need help passing an array as an argument | Excel Programming | |||
VBA - Passing a FUNCTION as an Argument | Excel Programming |