I assume you mean edit the code. I'll paste it here. The sheet name
I always have to use is "template." I see that in the code. Could I
have just removed every instance of the word "template?"
Thanks again.
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+Shift+J
'
ActiveWindow.SmallScroll Down:=11
Range("A22:R30").Select
Selection.Copy
ActiveWindow.SmallScroll Down:=6
Range("A32").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=6
Range("A42").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=12
Range("A52").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=12
Range("A62").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=12
Range("A72").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-42
Range("A32:W40").Select
Application.CutCopyMode = False
ActiveWorkbook.Worksheets("template").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("template").Sort.SortFields.Add
Key:=Range( _
"J33:J40"), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("template").Sort
.SetRange Range("A32:W40")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWindow.SmallScroll Down:=12
Range("A42:W50").Select
ActiveWorkbook.Worksheets("template").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("template").Sort.SortFields.Add
Key:=Range( _
"K43:K50"), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("template").Sort
.SetRange Range("A42:W50")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWindow.SmallScroll Down:=12
Range("A52:W60").Select
ActiveWorkbook.Worksheets("template").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("template").Sort.SortFields.Add
Key:=Range( _
"L53:L60"), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("template").Sort
.SetRange Range("A52:W60")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWindow.SmallScroll Down:=6
Range("A62:W70").Select
ActiveWorkbook.Worksheets("template").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("template").Sort.SortFields.Add
Key:=Range( _
"M63:M70"), SortOn:=xlSortOnValues, Order:=xlAscending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("template").Sort
.SetRange Range("A62:W70")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
ActiveWindow.SmallScroll Down:=12
Range("A72:S80").Select
Selection.Copy
ActiveWindow.SmallScroll Down:=12
Range("A82").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Worksheets("template").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("template").Sort.SortFields.Add
Key:=Range( _
"S83:S90"), SortOn:=xlSortOnValues, Order:=xlDescending,
DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("template").Sort
.SetRange Range("A82:S90")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End SubOn Sun, 10 Aug 2008 06:20:01 -0700, Gary''s Student