Private Sub cmdClear_Click()
Dim ctrl As Control
For Each ctrl In UserForm1.Controls
If TypeName(ctrl) = "Label" Then
'Identify Lines and change Visible '
If Left(ctrl.Name, 4) = "Line" Then
ctrl.Visible = False
End If
End If
Next ctrl
End Sub
Display More
Hope this will help
This site uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.More DetailsClose
Carim
Hello Alvaro,
You can simplify your code with following :
Hope this will help