I have the below VBA, which loops through all the named tabs in the array() formula. I want that to be a dynamic range that, instead of having the values typed into the array(), it references a range in a worksheet that has those values, and it dynamic when I add more
Sub Filter_To_Send()
Dim WshtNames As Variant
Dim WshtNameCrnt As Variant
WshtNames = Array("RASC", "RSUV", "SBKP", "RGRN", "SBTK", "RWAS", "RABT", "RHAY", "RLEX", "RARM", "RBCK", "RBER", "RCCP", "RDAL", "RHEB", "RSST", "RMST", "RMIA", "REHV", "RNBY", "RNOF", "RUTC", "RSCS", "RSJO", "RSCQ", "RSHA", "RAWP", "SART", "SASK", "SALC", "SNHQ", "SOEX", "SPHL", "SSHP", "SMRN")
For Each WshtNameCrnt In WshtNames
With Worksheets(WshtNameCrnt)
.Range("A5").AutoFilter field:=16, Criteria1:="<>0"
End With
Next WshtNameCrnt
End Sub
Thanks!