I want to have a sub that would format my textbox based on the file
status. Since it applies to all textboxes, I would like to do a sub
with a textbox as argument
Like
sub FormatTextbox(TargetTextbox as textbox)
....
End Sub
That part is OK, but I do not know how to pass the textbox to the sub
sub a
FormatTextBox(me.mytextbox)
end sub
does not work because it sends the default property .value.
What is the proper way to pass the textbox as the argument to the sub?
Michel