Toggle Text button between two options code needed

O

owlnevada

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.
 

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