Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

caption of Triplestate buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
#DIV/0 - 18 Sep 2007 09:26 GMT
I can change the caption of a ToggleButton with a simple

   If ToggleButton1 = False Then
       ToggleButton1.Caption = "False"
   ElseIf ToggleButton1 = True Then
       ToggleButton1.Caption = "True"
   End If

But if I enable Triplestate I can't get a different caption for "Null".
The help file says that triplestate controls don't generate click events.
So how can I get a new caption as well as just the greyed out "False"
caption ?

Signature

David M
WinXP - Office2003 (Italian)

Mike Fogleman - 18 Sep 2007 11:07 GMT
With the Change Event:

Private Sub ToggleButton1_Change()
   If IsNull(ToggleButton1.Value) Then
       ToggleButton1.Caption = "Value is Null"
   ElseIf ToggleButton1.Value = False Then
       ToggleButton1.Caption = "Value is False"
   ElseIf ToggleButton1.Value = True Then
       ToggleButton1.Caption = "Value is True"
   End If
End Sub

Mike F
>I can change the caption of a ToggleButton with a simple
>
[quoted text clipped - 8 lines]
> So how can I get a new caption as well as just the greyed out "False"
> caption ?
#DIV/0 - 18 Sep 2007 16:24 GMT
Thanks Mike
Signature

David M
WinXP - Office2003 (Italian)

> With the Change Event:
>
[quoted text clipped - 21 lines]
> > So how can I get a new caption as well as just the greyed out "False"
> > caption ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.