Hi. I have a userform to update some excel data. I have plenty codes like this. Is there anyway to optimize following code? Thanks in advance.
Code
Private Sub Btn1_Click()
If Label1 = "" Then
MsgBox "Please Select.."
ElseIf Btn1 = False Then
Label11.Enabled = True
Else
End If
End Sub
Private Sub Btn2_Click()
If Label2 = "" Then
MsgBox "Please Select.."
ElseIf Btn2 = False Then
Label22.Enabled = True
Else
End If
End Sub
.
.
.
.
.
Display More