toggle button

  1. A

    Display only columns with certain text

    Hi all, Please teach me how I can display only columns with certain text in Excel 2007? There are a lot of help on filtering rows but I am hoping to create either a toggle button or set up a reference cell (say "B4") along with a VBA to display columns with selected days only. For example...
  2. N

    VBA Toggle Button to change functionality

    Hello, I am working on creating a toggle button for a complicated spreadsheet. What is supposed to happen is when the toggle is pressed a formula is supposed to drive 4 investment levels keeping all four at the same ratio as when the toggle was pressed. When the toggle is released, the...
  3. K

    Using a Toggle Buttons to Hide Rows Based of a Value or Text in a Column

    I am trying to use macros to hide certain rows based on a value of a column which is usually a text value. I am planning a using multiple toggle buttons to hides rows that don't meet each criteria. I am kinda lost on how to begin any help and advice to get me through this would be greatly...
  4. L

    Several Toggle Buttons with same Macros

    Hi I have created a code for a Toggle button. However I need 50+ toggle buttons in the file with the same code. Please, see the code below. Private Sub ToggleButton1_Click() If ToggleButton1.Value = True Then ToggleButton1.Value. Caption = "Include" Range ("I5"). Value = 1 Else...
  5. F

    How to link Toggle Button name to Value in Excel Worksheet

    First time post... so be easy on me. I've entered a user form toggle button and now I need to link the name of this toggle button to a cell value within the worksheet the form will be placed. The cell value will change dependent on other slicers the user selects, so I need the toggle button...
  6. R

    Remove VBA loop on all worksheets.

    Can anyone help me with a simple problem. I don't know much about VBA but can tweak code I find online to do some applications. I want to use a toggle button to hide a range, but only do this on the worksheet that the toggle button is active on. The code I found on-line is for all worksheets...
  7. E

    Toggle button for hide/unhide columns

    Hi, I have a task for my student project in front of me that I need to do.. I have looked in all kind of forums but unfortunately I had no chance finding the solution for my problem.. Being a absolute beginner in Excel I need someone to help me. I use Excel 2010 and I need to do next task.. I...
  8. D

    Toggle Unhide rows but wants to prompt a password to use

    I want to be able show a prompt to add in the password before being able to do the actions below. Private SubToggleButton2_Click() If ToggleButton2Then ActiveSheet.UnprotectPassword ToggleButton2.ForeColor = RGB(0, 0, 0) ToggleButton2.Font.Bold = False ToggleButton2.Caption...
  9. C

    VBA Toggle button to remove shapes on worksheet.

    Hello. I have a number of shapes on my worksheet (text boxes, arrows and so on). I am trying to create a button that when pressed will hide (visible =false) the shapes on the worksheet. And when pressed again will show the shapes again. Can someone help me with that? Thanks
  10. O

    Clear Form and Reset Toggles on Multiple Sheets

    I am trying to reset/clear multiple sheets in an excel document as well as resetting the toggle buttons to "True". I can get the information to clear from all sheets and the toggles to reset on the active sheet but can't get the toggles from the 2 others sheets to reset. My clear button is on...
  11. M

    Toggle Button UI Ribbon

    Hi, I have added a toggle button to my custom Tab. The toggle is intended to Show/Hide a Column in the active sheet. The button works fine, but my problem is when the user saves and closes the spreadsheet. After re-opening the spreadsheet the toggle button is switched off (Not highlighted)...
  12. T

    Toggle Button to Format Cells

    Hi All, I am trying to code a toggle button to format a block of cells. Because I can only hide entire rows or columns, I am trying to just format the block of cells as ;;; so that the contents are hidden instead. If anyone can give me some code to do this, and show how to specify the cells...
  13. J

    [QUESTION] VBA CODE HELP: Only one toggle button to unhide one row at a time (there are 20 rows, but don't want them all unhidden at once)

    Hi, I have be looking all over the internet trying to find out who on earth figured this out. I don't know what to call this process or what others are calling it to effectively find the answer. I thought using keywords like: looping, repeat, one row at a time, continuous, and continuously...
  14. D

    Automatically Hiding Columns Based on relative cell value

    Hi there - using excel 10 on windows 7. I am relatively proficient in general excel use but completely lost when it comes to VBA. I have come across a number of answers to parts of this and have tried for several hours to get it working but to no avail and so would apprecaite any help given I...
  15. I

    Display or hide chart using toggle button

    Hi, I am trying to insert a toggle or command button that will show and hide a chart that is on a different sheet in the same workbook. I have used the below command button to achieve this with a chart on the same worksheet. Private Sub CommandButton1_Click() If Me.ChartObjects("Chart...
  16. N

    Compacting Verbose Script

    I have a simple conversion script below that converts pressure from psi to kpa and flow from gpm to lpm. It is triggered from a shape I linked to the macro Toggle_Clickwtext(). This code is very long winded, but gets the job done. In an effort to sharpen my skills and create better and more...
  17. O

    Toggle Button Password Protected Sheet

    Hello, I'm trying to use a toggle button to protect and unprotect a worksheet. I have this code Private Sub ToggleButton1_Click() If ActiveSheet.ProtectContents = True Then ActiveSheet.Unprotect "test" Else ActiveSheet.Protect "test" End If End Sub Although, It works (in a sense that...
  18. M

    Need Automated Laziness

    Ok, so I've got 14 toggle buttons on a worksheet that ultimately could grow to be a hundred of them. I want the buttons to have no caption when idle and I want them to say "OFF" when depressed. I know how to write a sub for each button to do so. Private Sub ToggleButton1_Click() If...
  19. B

    Shape Button to Toggle Button

    I am trying to use a shape to toggle the code below. I would like when the button is true it makes one cell equal another and when it false simply do away with it. Sub DWG_SAME_AS_PROG() Range("J4:N4").Select ActiveCell.FormulaR1C1 = "=R[2]C[-8]" End Sub
  20. P

    Change LinkedCell in Toggle Button

    Hello all, I have a toggle button (active x control) in cell B1. In the properties menu, I linked the toggle button to cell A1. The toggle button is entirely in the cell. I need to make a toggle button in each cell in the range of B1:B30. The toggle button in cell B2 should link to A2, the...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top