B
Bear
I have some code I'd like to execute when a command button is clicked. The
code is in the exit subroutine of a text box.
Private Sub txtColumnWidth_Exit(ByVal Cancel As MSForms.ReturnBoolean)
But when I say
Call txtColumnWidth_Exit
the compiler insists that I provide the Cancel argument. But I can't figure
out how to do that. None of these work, giving a type mismatch error on
compile.
Call txtColumnWidth_Exit(Cancel:=True)
Call txtColumnWidth_Exit(Cancel:=1)
What type is MSForms.ReturnBoolean and how do I pass it?
Bear
code is in the exit subroutine of a text box.
Private Sub txtColumnWidth_Exit(ByVal Cancel As MSForms.ReturnBoolean)
But when I say
Call txtColumnWidth_Exit
the compiler insists that I provide the Cancel argument. But I can't figure
out how to do that. None of these work, giving a type mismatch error on
compile.
Call txtColumnWidth_Exit(Cancel:=True)
Call txtColumnWidth_Exit(Cancel:=1)
What type is MSForms.ReturnBoolean and how do I pass it?
Bear