Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Toggle Text button between two options code needed

I've been attempting to add a toggle button to a custom ribbon menu group
called "Old Summary Fixes" on a "Summary Edits" tab. Not sure how to proceed
after reading up on the subject. I just want to put the text in either a yes
or no status as below. Here's what I have so far;

Sub TogglEncumb_click(Optional control As IRibbonControl)

Case No
Range("B36").Select
ActiveCell.FormulaR1C1 = "ENCUMBRANCE(S) : YES ( ) NO ( X )"

Case Yes
Range("B36").Select
ActiveCell.FormulaR1C1 = "ENCUMBRANCE(S) : YES ( X ) NO ( )"


End Sub

Is the the most elegant way to proceed using CASE or is there a better way?

Any help with links to a close example or with the .xlam modifications and
the above code would be very helpful.

Thanks in Advance.
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 - procedure works but elegance needed (xl2007) Kragelund Excel Programming 4 October 25th 08 09:22 PM
Toggle Button Format Options JAD Excel Programming 1 September 3rd 08 11:18 PM
Command button to toggle worksheet event code on / off? Fred[_2_] Excel Discussion (Misc queries) 15 July 31st 07 11:50 AM
VBA Code to Create a Toggle Button Brandt Excel Programming 2 November 19th 06 01:31 AM
toggle button & event code Bob Umlas[_3_] Excel Programming 0 April 14th 05 08:22 PM


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

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

About Us

"It's about Microsoft Excel"