Hello
I have a macro that copies part of the contents of a spreadsheet to another worksheet and reformats this.
What it copies is based on a filter using:
Selection.AutoFilter Field:=1, Criteria1:="2"
Where Criteria1 is specifying a numeric branch
We have around 60 branches and these are intermittant between 1 and 1000
Basically, I want to put this part of the macro into a subroutine and call the subroutine using the branch, resulting in 60 worksheets automatically created and formatted.
How do I loop through a filtered column
Is there a way I can send a unique branch set to an array to loop through (maybe?)
Thanks
Damian.
I have a macro that copies part of the contents of a spreadsheet to another worksheet and reformats this.
What it copies is based on a filter using:
Selection.AutoFilter Field:=1, Criteria1:="2"
Where Criteria1 is specifying a numeric branch
We have around 60 branches and these are intermittant between 1 and 1000
Basically, I want to put this part of the macro into a subroutine and call the subroutine using the branch, resulting in 60 worksheets automatically created and formatted.
How do I loop through a filtered column
Is there a way I can send a unique branch set to an array to loop through (maybe?)
Thanks
Damian.