Hide/Unhide Rows Based on Value of Cell in a Row Above

isinkzat

New Member
Joined
Jun 21, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have rows 19 through 25 hidden in a worksheet called DASHBOARD. Data is pulled in from another sheet after running a macro and is displayed in the range C7:P18 as spilled arrays. I'd like to be able to have the next hidden row (19) unhide if a value is inserted in C19. After that I'd like to have row 20 unhide if a value is inserted in C20, etc. Also if there is a way to rehide a row if there is no value in C19, C20, C21, etc...that would be even better.

I'm new to VBA, so if any of you could help me out I'd really appreciate it.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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