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

kdgreen

New Member
Joined
Feb 22, 2017
Messages
6
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 appreciated. Any additional information you might need to help me just let me know.


Thank you for anyone that reads this and tries to help in anyway they can.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
What is the criteria to hide the rows? In which column will this criteria appear.
 
Upvote 0
I was finally able to get the toggle button to hide the cells when clicked but I don't know how to unhide the cells when the button is toggled again the code I used was:

Private Sub ToggleButton1_Click()
Application.ScreenUpdating = False
For Each cell In Range("I16:I303")
cell.EntireRow.Hidden = cell.Value = "VHF"
Next cell
Application.ScreenUpdating = True


End Sub
 
Upvote 0
Need to run out and do some errands. Will work on this later today or tonight if no else steps in.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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