I am new in VBA. I’d like to hide unhide all the rows from any row to the end of the sheet.
The problem I have it is I dont know how to program to hide from the last written row.
I use the next function to know the last cell written, but I dont know where to put in the Hide Function.
last = Range("A100000").End(xlUp).Row
thanks a lot, any help will be grateful.
Try this, this will look for the last value in colA and put all the rows from A1 until LastRow as hidden.
Extra info on the code
Let’s say we have data from A1 until A10