I am creating a spreadsheet that will end up having atleast 200 rows when completed. I have my spreadsheet broken up into different sections and each row has a cell that will either display Yes or No.
My VBA code is a bunch of If and ElseIf statements that will either display the entire row when the cell reads "Yes" or it will hide the entire row when the cell displays "No".
My concern is if I forgot to add something in a section near the top of the spreadsheet, I would have to insert an entire row. All of the cells called out in each line of VBA code would then be one off.
Is there any way of still being able to look at whether each cell says yes or no and hiding that row accordingly? I just do not want to have to insert a row and then have to go and change all the cell values in each line of code below where I made the insert.
Thanks.
My VBA code is a bunch of If and ElseIf statements that will either display the entire row when the cell reads "Yes" or it will hide the entire row when the cell displays "No".
My concern is if I forgot to add something in a section near the top of the spreadsheet, I would have to insert an entire row. All of the cells called out in each line of VBA code would then be one off.
Is there any way of still being able to look at whether each cell says yes or no and hiding that row accordingly? I just do not want to have to insert a row and then have to go and change all the cell values in each line of code below where I made the insert.
Thanks.