I currently have a filter in A3. I have a code that is to select a name in the list. I need to select all names in the list individually and run a code to move them to another sheet which is fine. Right now I have to add each name of someone or delete their name if they are in or not in the filter otherwise I don't get their information. I would really like for it to automatically select each person and run my copy VBA I have and then go to the next person in the list until it gets to the end. Any ideas on how to achieve this.
Right now I am using something like this:
If (Selection.AutoFilter(Field:=1, Criteria1:="WASIK, MARY")) = (Selection.AutoFilter(Field:=1, Criteria1:="WASIK, MARY")) Then
Application.Run "copyto"
Else: Selection.AutoFilter Field:=1, Criteria1:="WEINSTEIN, MITCH J"
End If
If (Selection.AutoFilter(Field:=1, Criteria1:="WEINSTEIN, MITCH J")) = (Selection.AutoFilter(Field:=1, Criteria1:="WEINSTEIN, MITCH J")) Then
Application.Run "copyto"
End If
Would really like to make it more automated so that I don't have to add or delete people.
Thanks.
Right now I am using something like this:
If (Selection.AutoFilter(Field:=1, Criteria1:="WASIK, MARY")) = (Selection.AutoFilter(Field:=1, Criteria1:="WASIK, MARY")) Then
Application.Run "copyto"
Else: Selection.AutoFilter Field:=1, Criteria1:="WEINSTEIN, MITCH J"
End If
If (Selection.AutoFilter(Field:=1, Criteria1:="WEINSTEIN, MITCH J")) = (Selection.AutoFilter(Field:=1, Criteria1:="WEINSTEIN, MITCH J")) Then
Application.Run "copyto"
End If
Would really like to make it more automated so that I don't have to add or delete people.
Thanks.