alan myers
Board Regular
- Joined
- Oct 31, 2017
- Messages
- 119
- Office Version
- 365
- Platform
- Windows
Column A | Column B | Column C | Column D | |
Row 1 | Carriers | Hide Y/N | Start | End |
Row 2 | Carrier1 | Y | 3 | 51 |
Row 3 | Carrier2 | Y | 60 | 68 |
Row 4 | Carrier3 | n | 70 | 79 |
Row 5 | Carrier4 | n | 84 | 86 |
Row 6 | Carrier5 | n | 87 | 91 |
Row 7 | Carrier6 | Y | 92 | 99 |
Row 8 | Carrier7 | Y | 100 | 105 |
Row 9 | Carrier8 | n | 110 | 150 |
Row 10 | Carrier9 | n | 200 | 225 |
Row 11 | Carrier10 | Y | 250 | 275 |
Row 12 | Carrier11 | Y | 300 | 340 |
- | ||||
- | ||||
- | ||||
- | ||||
Row 196 | Carrier 195 | n | 1234 | 1300 |
I need VBA code that when I change starting at b2 to a y, it hides the rows from c2 value to d2 value, and when I switch back to an n, it unhides them. There will be 195 cells that need to be checked.
the show hide tab is where I change b2 and I need to hide the rows on the cover sheet tab.
here is my file https://www.mediafire.com/file/aq3h8yk8dqex04n/Payroll+v1a.xlsm/file