Have you ever wanted to run the same subroutine for many controls without using a contraol array? O
Have you ever wanted to run the same subroutine for many controls without using a contraol array? Only a few lines of code, make special note
Rate Have you ever wanted to run the same subroutine for many controls without using a contraol array? O
(1(1 Vote))
'Add one button control and two text boxes to a form.
'Add the following code.
Private Sub Command1_Click()
TxtChange Text1
TxtChange Text2
End Sub
Private Sub TxtChange(Ctrl As TextBox)
Ctrl.Text = "Got Me " + Ctrl.Name
End Sub
Have you ever wanted to run the same subroutine for many controls without using a contraol array? O Comments
No comments yet — be the first to post one!
Post a Comment