#1   Report Post  
Posted to microsoft.public.excel.misc
keithl816
 
Posts: n/a
Default Toggle button


Hello,

I have toggle buttons on a spreadsheet that opens hidden spreadsheets
when not in use. These sheets are just for correction purposes, so to
keep from having so many spreadsheets on the bottom bar, I hide them.
Is it possible to change the title in the button when the button is
depressed? I want the button to show DISPLAY when out and HIDE when
depressed.

Any help would be appreciated.

Larry


--
keithl816
------------------------------------------------------------------------
keithl816's Profile: http://www.excelforum.com/member.php...o&userid=21287
View this thread: http://www.excelforum.com/showthread...hreadid=486980

  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Toggle button

Insert this code with the appropriate name changes into the click event
of your button.
Private Sub ToggleButton1_Click()

MsgBox ToggleButton1.Value
If ToggleButton1.Value = True Then
ToggleButton1.Caption = "Hide"
Else
ToggleButton1.Caption = "Display"
End If

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.misc
keithl816
 
Posts: n/a
Default Toggle button


Hi twox4s,

Thanks for the reply. That worked great!!!!

Thanks again.

Larry


--
keithl816
------------------------------------------------------------------------
keithl816's Profile: http://www.excelforum.com/member.php...o&userid=21287
View this thread: http://www.excelforum.com/showthread...hreadid=486980

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
toggle button text color John Davies Excel Discussion (Misc queries) 5 December 12th 05 07:43 PM
Toggle Button Dave_2k5 Excel Discussion (Misc queries) 2 September 1st 05 12:27 PM
Place the caption of a toggle button into a cell [email protected] Excel Worksheet Functions 2 May 12th 05 05:47 AM
Command Button VBA code Dave Peterson Excel Discussion (Misc queries) 2 January 26th 05 12:28 AM
Toggle betwen "editing" and "pushing" a button in excel brjohnson9 Excel Discussion (Misc queries) 1 December 9th 04 01:02 AM


All times are GMT +1. The time now is 03:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"