Protected Sheet - Hide/Unhide Rows based on user input and other cell values

rhynosaurus_rex

New Member
Joined
Jan 29, 2019
Messages
2
Hi Everyone,

I have been able to find parts of the VBA for what I wouldlike to do, but not a solution that will work for my situation.

I have a password protected spreadsheet with a projectlist.
Projects are listed in Rows 10 – 200.

Column D contains project status (Open, Closed, Pending). Order of projects is random so Closed will bespread throughout the project list.

Unprotected Cell B2 is a user input in which the user canenter “Y” or “N” in order to show Closed Projects or not.

Y = Show Closed Projects
N = Hide Closed Projects

I would like to use a VBA to hide or unhide “Closed”projects based on the user input in Cell B2. This VBA will need to Unprotect and Protect the sheet after eachrun.

Is this possible? Thank you in advance!

 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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