Woodyexcel
New Member
- Joined
- Jun 28, 2011
- Messages
- 8
I am sorting information from one/two cloumn to 10 different sheets, can it be accomplished easier? Thanks in advance.
Woody
Sub MultiSort()
Call BURSort
Call CSTSort
Call DELSort
Call EMPSort
Call LAASort
Call SANSort
Call TMUSort
Call CLSDSort
Call ABYSort
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Range("A1").Select
End Sub
Sub BURSort()
'
' BURSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*BUR*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("BURBANK").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub CSTSort()
'
' CSTSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Coast").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub DELSort()
'
' DELSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Del Rey").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub EMPSort()
'
' EMPSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("EMPIRE").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub LAASort()
'
' LAASort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("LA Arrivals").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub SANSort()
'
' SANSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("San Diego").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub TMUSort()
'
' TMUSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("TMU").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub CLSDSort()
'
' ClosedSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=5
Selection.AutoFilter Field:=5, Criteria1:="=*Closed*", Operator:=xlOr, _
Criteria2:="=*Complete*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Closed-Complete").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub ABYSort()
'
' ABEYANCE Sort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=5
Selection.AutoFilter Field:=5, Criteria1:="Abeyance"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Abeyance").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Woody
Sub MultiSort()
Call BURSort
Call CSTSort
Call DELSort
Call EMPSort
Call LAASort
Call SANSort
Call TMUSort
Call CLSDSort
Call ABYSort
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Range("A1").Select
End Sub
Sub BURSort()
'
' BURSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*BUR*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("BURBANK").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub CSTSort()
'
' CSTSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Coast").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub DELSort()
'
' DELSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Del Rey").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub EMPSort()
'
' EMPSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("EMPIRE").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub LAASort()
'
' LAASort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("LA Arrivals").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub SANSort()
'
' SANSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("San Diego").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub TMUSort()
'
' TMUSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=4
Selection.AutoFilter Field:=4, Criteria1:="=*ALL*", Operator:=xlOr, _
Criteria2:="=*EMP*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("TMU").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub CLSDSort()
'
' ClosedSort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=5
Selection.AutoFilter Field:=5, Criteria1:="=*Closed*", Operator:=xlOr, _
Criteria2:="=*Complete*"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Closed-Complete").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub
Sub ABYSort()
'
' ABEYANCE Sort Macro
'
Sheets("Requests (ALL)").Select
Selection.AutoFilter Field:=5
Selection.AutoFilter Field:=5, Criteria1:="Abeyance"
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Copy
Sheets("Abeyance").Select
Range("A1").Select
ActiveSheet.Paste
Columns("H:I").Select
Selection.ClearContents
Range("A1").Select
End Sub