Checkbox, Bold, Toggle

Jul 2, 2005

I'm having a problem making my font bold when I click on my checkbox and when I uncheck it I want the font to become unbold. I can make it bold when its checked but am not able to make it return to normal when i uncheck it..

View 9 Replies


Toggle Sheet Visiblity Via CheckBox

Apr 3, 2008

I'm building a worksheet and I been struggling with writing a macro for this particular checkbox. As an example, I have Sheet 1 which contains my checkbox. When the checkbox is checked I want it to unhide sheet2 and when it is not checked, I want it to hide sheet2 again.

View 3 Replies View Related

Toggle Multiple Checkbox Values On Focus

Jul 26, 2007

I have a userform with 54+ textboxes and and a checkbox. I would like to change the value of the checkbox from true to false using the keyboard when any of the textboxes have the focus. I can do this using a 'IF keycode' routine but I have to paste the code into each textbox. Is there a way of having the code in one place only, to prevent duplication?

View 2 Replies View Related

Merging Cols Changes Bold To Non-bold Or Non-bold To Bold

Jun 8, 2008

I am merging columns. Col B has all text in bold. Col C has all text in regular font. When I use ASAP to merge, the merged column comes out all bold. When I use a formula to merge the merged column comes out all regular. What I want is for the merged column to contain the bold text from Col B in bold, and the regular text from Col C in regular.

What I want is...

This is for service plan B: Take all data and transer to new server.

What I am getting is...

This is for service plan B:Take all data and transer to new server.


This is for service plan B:Take all data and transer to new server.

View 9 Replies View Related

How To Run Macro If Selection Is Not Bold And If Bold Then Do Nothing

Aug 5, 2012

How do we run a macro if the selection is not bold and If bold then do nothing.

View 3 Replies View Related

Make 1 Cell Bold If Another 1 Is Bold

Oct 2, 2007

I am trying to create a macro that if a value in a cell in column A is bold, then the value in the same row in column H is bold, then loop it to run on the rest of the worksheet.

View 9 Replies View Related

Toggle Cell Format: Assign A Key To Toggle Between Two Different Cell Formats

Oct 3, 2007

Is there any way you can use VBA to assign a key to toggle between two different cell formats? I want to toggle a cell from white border with black text to black border with white text and visa versa, with the same key or button. I've searched the posts but can't find this mentioned.

View 6 Replies View Related

Delete All Text Which Is Not 'bold' In Cells With 'mingled Bold' Text

Jan 23, 2010

I want to have a function or macro that if cells have mingled bold text, that only the bold text shall remain in the cells, and all the rest of the text must be deleted.

View 4 Replies View Related

Checkbox : Married, Widows, Single Checkbox Is Selected

Feb 25, 2009

married, widows, single checkbox is selected

macro solution
good work.

View 5 Replies View Related

Stop Checkbox Sub From Jumping To Other Checkbox Subs

Apr 16, 2014

I have 3 checkboxes; when one is checked, a set/range of rows should be visible. Only 1 checkbox should be checked at a time.

If checkbox 18 is already checked, and checkbox 20 is then checked, I want the first checkbox unchecked and the rows for checkbox hidden.

I'm using the following code. It works great as long as I check and uncheck the same box before attempting to check another box. But if Checkbox18 is already checked with its rows showing, and I then check checkbox20, the checkbox20 sub runs and as I step through, it jumps to sub checkbox18.

How can I stop my subs from jumping from one to another?

Private Sub CheckBox18_Click()
If CheckBox18.Value = True Then
Worksheets("TRF").Rows("36:41").Hidden = False
Worksheets("TRF").Rows("42:64").Hidden = True
Worksheets("TRF").Rows("65:76").Hidden = True
CheckBox19.Value = False

[Code] .........

View 9 Replies View Related

Hide/Unhide Checkbox Using Another Checkbox

Dec 14, 2008

How can i hide and unhide one checkbox using another one? Can it be done using IF formula?
And also i am using this checkbox to function something else as TRUE/FALSE.

View 6 Replies View Related

Checkbox Vba: The Amount From The Subtotal Cell Will Auto Go To The Cell Next To The Checkbox

May 9, 2006

I have been using different keywords to find what I need. I have 3 checkboxes: cash, amex, other. I have a subtotal cell. When the appropriate checkbox is checked, the amount from the subtotal cell will auto go to the cell next to the checkbox. Is this VB?

View 6 Replies View Related

Toggle Between Percentage And Value?

May 26, 2014

How can I toggle between percentage and actual value to display on a pie chart?

View 1 Replies View Related

Check Box Toggle

Jun 18, 2008

I am working on a sheet in Excel 2007 and am having trouble with Excel toggling with a checkbox. What I want is for a cell to have "A" in it if the box is checked and a "B" if it isn't. The code I have is:

Sub CheckBox6_Click()
If CheckBox6 = True Then
Range("B20") = "A"
Range("B20") = "B"
End If
End Sub

View 9 Replies View Related

Toggle In The Formula Bar Before It Changes

Jan 3, 2007

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target = "" Then Exit Sub
If Target.Address "$B$9" Then Exit Sub
Sh.Name = Right(Sh.Range("B9"), 4)
End Sub

Problem is i still have to toggle it in the formula bar before it changes. I have this formula ='Class List'!B10 in B10 which is feeding from another worksheet called Class List.

View 9 Replies View Related

Drop-Down Box Toggle

Nov 12, 2008

Is there a way to keep the drop-box on a combobox from showing at all? I am trying to build one that has several different values that will just cycle through when clicked.

Here a bit of code I am using so far, just as an example:

Private Sub ComboBox1_DropButt*******()
If Range("F7").Value = "Yes" Then
Me.ComboBox1.Value = "No"
Me.ComboBox1.Value = "Yes"
End If
End Sub

View 9 Replies View Related

Toggle Autofilter (if On - Then Off, If Off - Then On)

Jul 2, 2006

Attempting to toggle autofilter (if on - then off, if off - then on). Found this here at Ozgrid, apologies lost the thread and author

Sub CheckForAutoFilters2()
With ActiveSheet
If .AutoFilterMode = True And .FilterMode = True Then
.AutoFilterMode = False And .FilterMode = False
.AutoFilterMode = True And .FilterMode = True
End If
End With

End Sub

I added the Else... piece. The code does turn autofilter off - if on. But not on - if off. (Hard to read) ObjectiveAdd drop down arrows to header row if autofilter off. That's it all data to reamin visible until user (me) takes some action.Show all data, remove drop down arrows if autofilter onThanks

View 5 Replies View Related

Allow Use Of 1 Toggle Button Only

Feb 23, 2008

I'm looking for a way to have mutually exclusive toggle buttons (i.e. only one can be selected at a time) embedded in a worksheet. It is possible with radio buttons but they won't serve my needs.

View 5 Replies View Related

How To Get Sound Toggle Button

Apr 7, 2014

Is there a way to get a sound toggle button on excel?

What I need is a button to turn the sound alerts on and off on my spreadsheet. Ideally I'd like a button that either changed an image to the speaker image when on and the speaker image with line through it when off. Is that possible?

If not, is it possible to have a button that just says: "Sound:ON" or "Sound:OFF"?

I guess it could be done with tick boxes, or drop down options.

View 4 Replies View Related

Toggle Button For Stopwatch

Mar 26, 2014

I have the code below for creating a stopwatch in excel. I was trying to see if there is a way to change this code to assign it to a toggle button so if you hit one part the stopwatch would start and then the other it would stop.

[Code] ....

View 4 Replies View Related

Toggle Button To Remain On/Off

Feb 11, 2009

I wanted to know how do I keep a toggle button in the on(ture) position after I close the userform? How do I keep the toggle button off(false) positoin after I close the userform? In order words, once I run my macro again, I want it to remain in memory that my toggle button was in the on(true) or off(false)?

For example,I have an application that I am developing which involves some what-if analysis for some projects. There is a command button located on my worksheet. After the command button is clicked, I have include some toggle buttons on a userform for all of the various projects. If I assume that sine projects will not be used, I click the associated toggle buttons. This puts them in the on(true) position. After I close the userform and reclick the command button, my toggle buttons are all back in the off(false) position.

View 5 Replies View Related

Macro In A Toggle Button..

Jul 27, 2009

it's possible to use this macro code in a toggle to perform this action when it's true and when the toggle is click again it can undo it.

This macro does lookups and finds the max on sets of value when it is run and i was wondering if by clicking the button again it can undo what it placed in the cells.

View 4 Replies View Related

Toggle Between Two Excel Applications

Apr 8, 2013

I have a macro that cycles every 5 minutes. I have tried everything I can to get this program to run while I modify a sheet in the workbook to no avail. I have however figured out that if I open up a separate excel application that my macro can continuously run without preventing me from modifying the other application. Now I need to figure out a way toggle between the two excel application windows if a condition is met. The basis of this is to allow production associates to create a schedule and modify it while a macro looks into the defect database and if a defect becomes too problematic, the macro interrupts the schedule to display the issue.

View 2 Replies View Related

Toggle Code For More Than One Cell

Aug 3, 2013

This code toggles between a blank cell and an "a" each time the user selects V81.

If Target.Address = "$V$81" Then
If Target.Value = "" Then
ActiveCell.Value = "a"
ActiveCell.Value = ""
End If
End If

I'd like to expand it so this toggle works not only on V81, but also on V89, V100:105, and V120:124.

View 8 Replies View Related

Hide/Unhide Toggle

Jan 8, 2007

Could someone provide me with the VBA to 'toggle' between HIDING and UNHIDING columns within one macro

e.g. toggle between this hiding and unhiding the following

Sub HideColumns()

Selection.EntireColumn.Hidden = True

End Sub

View 9 Replies View Related

Multiple Toggle Buttons

Dec 9, 2008

I am having a small issue with my toggle buttons.

I have approximately 20 sheets that all have 4 toggle buttons on them. Coded as below (with different ranges for each button). So when I wrote them I took the easy (for me anyway) way and copied all the code for all the buttons in each sheet. (Buttons are named Zoom1, Zoom2 etc.)
Private Sub Zoom1_Click()
If Zoom1.Value = True Then
ActiveWindow.Zoom = 143
ActiveWindow.LargeScroll ToRight:=-10, Down:=-10
ActiveWindow.Zoom = 75
ActiveWindow.LargeScroll ToRight:=-10, Down:=-10
End If
End Sub.........

View 9 Replies View Related

Toggle Grid Short Cut Key

Mar 9, 2009

This is to inform you that I frequently use toggle grid tool to make my worksheet white/plain,doing this with the help of mouse is eating lot of my time which i really feel anonying/pain.

I would like to have a short cut key for toggle grid which lies in Forms toolbar.

View 9 Replies View Related

Toggle Snap To Grid

Apr 23, 2009

I am trying to modify the code below to toggle the snap to grid on/off or off/on and is giving me an error.

Sub ToggleSnapToGrid(Optional Dummy As Long)
With Application.CommandBars.FindControl(ID:=549)
If .State = 0 Then
.State = 1
End If
End With
End Sub

View 9 Replies View Related

2007 Vba To Toggle Sheet

May 29, 2009

I m sure this should be simple but the excell help in 2007 is infuriating
I have a macro invoked by ctrl t to toggle the worksheet that I am useing. I want it to work out which sheet is open and open the other one if the macro is invoked
here is the code I have got but it goes to the first sheet and then wont come back

Sub Atmos()
If Sheets("Work").Select Then
End If
GoTo Last
If Sheets("Atmos").Select Then
End If
GoTo Last
End Sub

View 9 Replies View Related

Controlling Toggle Buttons

Apr 26, 2006

I have several toggle buttons on a spreadsheet for the user to choose which month they want data for. Can anyone tell me how I can make the toggle button that is in the down position change to the up position and not execute the command again when one of the other toggle buttons is pushed?

View 6 Replies View Related

Copyrights 2005-15, All rights reserved