PC Review


Reply
Thread Tools Rate Thread

Active X control Label

 
 
Richard
Guest
Posts: n/a
 
      13th Feb 2011
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



 
Reply With Quote
 
 
 
 
Richard
Guest
Posts: n/a
 
      13th Feb 2011
On Feb 13, 4:29*am, Richard <bobde...@yahoo.com> wrote:
> 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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Active X control Label text from 1 to a wingding(A "1" witha circle around it) Richard Microsoft Word New Users 0 13th Feb 2011 07:06 PM
can g.DrawString draw text on top of a label control? any control? =?Utf-8?B?UmljaA==?= Microsoft VB .NET 3 29th Apr 2005 11:54 PM
How can I create a split bar control (label control) to resize parts of a form? Savvoulidis Iordanis Microsoft Access Form Coding 7 15th Sep 2004 12:52 PM
An active label? george Microsoft Access Form Coding 2 26th Jan 2004 11:10 AM
How can I Hi-light label of active field? Paul Microsoft Access Forms 2 5th Dec 2003 06:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.