Sub Sort_LC()
'
' Sort_LC Macro
'
'
Columns("A:AA").Select
ActiveWorkbook.Worksheets("LC").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("LC").Sort.SortFields.Add Key:=Range("M2:M20225"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
ActiveWorkbook.Worksheets("LC").Sort.SortFields.Add Key:=Range("G2:G20225"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
ActiveWorkbook.Worksheets("LC").Sort.SortFields.Add Key:=Range("B2:B20225"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("LC").Sort
.SetRange Range("A1:AA20225")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
End With
ActiveSheet.Range("$A$1:$AA$2150").AutoFilter Field:=1, Criteria1:= _
"=Issued", Operator:=xlOr, Criteria2:="="
Range("A1").Select
Sheets("pivot").Select
ActiveSheet.PivotTables("Pivot_Banks_With_LC").PivotSelect "Status", xlButton, _
True
ActiveSheet.PivotTables("Pivot_Banks_With_LC").PivotCache.Refresh
Sheets("LC").Select
Range("A1").Select
End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE