Public teb As Variant Sub getolg(te As Variant) On Error Resume Next teb.BackColor = RGB(255, 255, 255) MsgBox teb.Name Set teb = UserForm1.Controls(te.Name) MsgBox teb.Name End Sub
Public teb As Variant Sub getolg(te As Variant) Static m% m = m + 1 If m <> 1 Then teb.BackColor = RGB(255, 255, 255) End If Set teb = UserForm1.Controls(te.Name) End Sub