Is there a way to get an array of all the rows in VBA and then copy them to a new sheet?
I assume that the correct property is rows(index).Hidden, but I am not sure how to use this.
Is there an easy way?
My problem is mainly that I can’t Dim something As Rows.
To select the visible rows:
but you actually can Dim something as Rows, because the Rows property returns a Range, so you just Dim your variable as a Range.
If you want to clear your clipboard afterwards use:
Also note that it’s inefficient to use copy and paste in Excel.
You should assign one range to another if you can.