Using VBA I am trying to reference a cluster of rows to hide in an excel spreadsheet using indexes. Because the rows are variable I can not use a statement such as rows("4:12").hide which only references fixed rows. I can hide each row individually but i find this takes a long time as there are numerous rows to delete (even with screen updating turned off) and the row locations are variable.
Can anyone suggest a way to achieve my aim.
Many thanks