Active X control Label

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Using Word 2010
I have an Active X Control Label that I need for it to toggle back and
forth from 1 to 2. Back and forth. I have this code so far but it will
only toggle once. Any help or suggestions on how to change!! Thanks in
advance!

Private Sub Label1_Click()
If Label1 = True Then
Label1.Caption = "2"
Else
Label1.Caption = "1"
End If
 
Using Word 2010
I have an Active X Control Label that I need for it to toggle back and
forth from 1 to 2. Back and forth. I have this code so far but it will
only toggle once. Any help or suggestions on how to change!! Thanks in
advance!

Private Sub Label1_Click()
If Label1 = True Then
Label1.Caption = "2"
Else
Label1.Caption = "1"
End If

Thanks! I've figured this one out! Wow!! It's
Private Sub Label1_Click()
If Label1.Caption = "2" Then
Label1.Caption = "1"
Else
If Label1.Caption = "1" Then
Label1.Caption = "2"
End If
End If
End Sub
 
Back
Top