Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub center_shapes_in_cells()
- Dim Row As Integer
- Dim Shp As Shape
- Dim myShapes As Object
- Set myShapes = Selection.ShapeRange
- For Each Shp In myShapes
- Shp.Select
- Dim vSel As Variant
- Dim rngZ As Range
- Set vSel = Selection
- If VarType(vSel) = vbObject Then
- With vSel
- Set rngZ = .TopLeftCell
- .Height = rngZ.MergeArea.Height - 5
- .Top = rngZ.Top + (rngZ.MergeArea.Height - .Height) / 2
- .Width = rngZ.MergeArea.Width - 5
- .Left = rngZ.Left + (rngZ.MergeArea.Width - .Width) / 2
- .ShapeRange.LockAspectRatio = msoFalse
- .Placement = xlMoveAndSize
- .PrintObject = True
- End With
- rngZ.Select
- End If
- Next
- End Sub
- Sub ESPNRank()
- '
- ' ESPNRank Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ESPN Rank]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub NFLadp()
- '
- ' ECR Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[NFL ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub Sort5PPR()
- '
- ' ECR Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[0.5PPR]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub ECR()
- '
- ' ECR Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ECR]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub ESPNadp()
- '
- ' ESPNadp Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ESPN ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub ECRadp()
- '
- ' ECRadp Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ECR ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub RnkSkew()
- '
- ' ECRadp Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ECR Skew]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub Test()
- Dim s As Shape
- On Error Resume Next
- For Each s In ActiveSheet.Shapes
- s.Placement = xlMoveAndSize
- Next
- End Sub
- Sub ESPNrnkkk()
- '
- ' ESPNrnkkk Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ESPN]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub ESPNprj()
- '
- ' ESPNprj Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ESPN Prj]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub ECRprj()
- '
- ' ECRprj Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[ECR Prj]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub TierSrt()
- '
- ' TierSrt Macro
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Std Tier]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub TierPPR()
- '
- ' tierPPR Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[PPR Tier]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub Tier5PPR()
- '
- ' tier5ppr Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[.5PPR Tier]]"), SortOn:=xlSortOnValues, Order _
- :=xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SortVBD()
- '
- ' tier5ppr Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[VBD]]"), SortOn:=xlSortOnValues, Order _
- :=xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SortVBDval()
- '
- ' tier5ppr Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Val%]]"), SortOn:=xlSortOnValues, Order _
- :=xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub Salary()
- '
- ' tier5ppr Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Salary]]"), SortOn:=xlSortOnValues, Order _
- :=xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SrtCustom()
- '
- ' SrtCustom Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Custom Ranks]]"), SortOn:=xlSortOnValues, Order _
- :=xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub sortdyn()
- '
- ' sortdyn Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Dynasty]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub sortrook()
- '
- ' sortrook Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- Range("X5:X6").Select
- Range("X6").Activate
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Rookie]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub YahooADP()
- '
- ' YahooADP Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Yahoo ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub YahooRnk()
- '
- ' YahooRnk Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Yahoo]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub NFLrnk()
- '
- ' NFLrnk Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[NFL]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub PPRadp()
- '
- ' pprADP Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[PPR ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub PPRrnk()
- '
- ' pprRNK Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[PPR]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub VBDsrt()
- '
- ' VBDsrt Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[VBD]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SkewSrt()
- '
- ' SkewSrt Macro
- '
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Skew]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub BeerVal()
- '
- ' BeerVal Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[BS Val]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub BeerPS()
- '
- ' BeerPS Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[PosScarcity]]"), SortOn:=xlSortOnValues, Order _
- :=xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub BeerTier()
- '
- ' BeerPS Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[BeerTier]]"), SortOn:=xlSortOnValues, Order _
- :=xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub BeerAdjVal()
- '
- ' BeerAdjVal Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[AdjBSval]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SortFFC()
- '
- ' SortFFC Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[FFC ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub SortDynastyADP()
- '
- ' SortFFC Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Dynasty ADP]]"), SortOn:=xlSortOnValues, Order:= _
- xlAscending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
- Sub srtPCgold()
- '
- ' srtPCgold Macro
- '
- With Application
- .ScreenUpdating = False
- .EnableEvents = False
- .Calculation = xlCalculationManual
- .DisplayAlerts = False
- End With
- Dim setclick As String
- setclick = Worksheets("Overall").Range("L2").Value
- Range("L2").Value = False
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields. _
- Clear
- ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort.SortFields.Add _
- Key:=Range("Table1[[#All],[Gold Rank]]"), SortOn:=xlSortOnValues, Order:= _
- xlDescending, DataOption:=xlSortNormal
- With ActiveWorkbook.Worksheets("Overall").ListObjects("Table1").Sort
- .Header = xlYes
- .MatchCase = False
- .Orientation = xlTopToBottom
- .SortMethod = xlPinYin
- .Apply
- End With
- Worksheets("Overall").Range("L2").Value = setclick
- With Application
- .ScreenUpdating = True
- .EnableEvents = True
- .Calculation = xlCalculationAutomatic
- .DisplayAlerts = True
- End With
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement