I am trying to figure out how to calculate the beginning or end of a range of rows to hide using the VB code.
I have a spreadsheet cell (A3) that has an input of 1-10.
Based upon that input, there is a section of rows (A10-A19) with values that should show only the number of rows based on that the input.
i.e. if A3=1, then only row 10 should show and 11-19 should be hidden. If A3=2, then 10 thru 11 should show and 12-19 should be hidden, etc.
Can I use the following format? If so, how do I get the ranges to work as a calculation based on A3?
Sheets("System Information").Range("10:???").EntireRow.Hidden = False
Sheets("System Information").Range("???:19").EntireRow.Hidden = True
Would the following work?
Range ("A3") =X
Sheets("System Information").Range("10:(10+X)").EntireRow.Hidden = False
Sheets("System Information").Range("(10+X+1):19").EntireRow.Hidden = True
Thanks in advance
Bookmarks