Kevin;
Sorry, I've been away for a few days. Here's a new file Copy of Performance Data Dump3.xls.
I changed the name of the sub that counts. You can call it as many times as you want.
Count_Column sh, "G", "AB", iLastColumn
sh is the sheet that is getting counted
"G" is the column you want counted
"AB" is the column where you want the results stored.
iLastColumn is a variable that stores the last column used, so that the FormatFilterSortAndPasteToSheet() can autofit enough columns
Count_Column sh, "G", "AB", iLastColumn
Count_Column sh, "F", "W", iLastColumn
Count_Column sh, "B", "R", iLastColumn
.Range(.Cells(1, 1), .Cells(1, iLastColumn)).EntireColumn.AutoFit
Just make sure that the last call to Count_Column() is the order that you want the sheet to be left in.
Bookmarks