christosf360
New Member
- Joined
- Apr 19, 2015
- Messages
- 8
Hi everyone,
I have built a Subroutine and one of the required variables is a Checkbox. The Subroutine needs to check if a specified Checkbox has been ticked or not. Here is the declaration of the Subroutine with the Checkbox variable being the last one called "SwitchBox" (Have I used the right variable type to begin with???):
I then try and call it by using the following line:
But when I do so I get a "Type mismatch error"
Any suggestions please?...?
Many thanks!!!
I have built a Subroutine and one of the required variables is a Checkbox. The Subroutine needs to check if a specified Checkbox has been ticked or not. Here is the declaration of the Subroutine with the Checkbox variable being the last one called "SwitchBox" (Have I used the right variable type to begin with???):
Code:
Sub SwitchText(SwitchFlag As Boolean, SwitchType As String, TextForSwitch As String, _
UnitSelected As String, SwitchBox As OLEObject)
I then try and call it by using the following line:
Code:
Call SwitchText(SpecsFlag, "Specs", "E59", Unit, Specs)
But when I do so I get a "Type mismatch error"
Any suggestions please?...?
Many thanks!!!