Active X control Label

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
 
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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top