Sub StampOrdALFAB_Francione()
ActiveSheet.Unprotect
Cells.Select
Selection.Locked = True
Selection.FormulaHidden = False
Range("AD13").Select
Range("AC17:AJ34").Select
Selection.Copy
ActiveWindow.SmallScroll ToRight:=16
Range("AM17").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll ToRight:=8
Range("AV12").Select
ActiveSheet.Paste
Range("AV17").Select
ActiveSheet.Paste
Range("AV12:BC16").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("AV15:BC34").Select
ActiveWorkbook.Worksheets("6").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("6").Sort.SortFields.Add Key:=Range("AV15"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("6").Sort
.SetRange Range("AV15:BC34")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("AV15:BC32").Select
Selection.Copy
Range("AC17").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With
Range("AC40:AJ46").Select
Selection.Copy
Range("AM40").Select
ActiveSheet.Paste
Range("AV37").Select
ActiveSheet.Paste
Range("AV40").Select
ActiveSheet.Paste
Range("AV37:BC39").Select
Application.CutCopyMode = False
Selection.Cut
Range("AV37:BC39").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("AV37:BC46").Select
ActiveWorkbook.Worksheets("6").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("6").Sort.SortFields.Add Key:=Range("AV37"), _
SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("6").Sort
.SetRange Range("AV37:BC46")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("AV37:BC43").Select
Selection.Copy
Range("AC40").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=39
Range("AA76").Select
ActiveWindow.SmallScroll Down:=-48
Range("A25").Select
Selection.Copy
Range("A19").Select
ActiveSheet.Paste
Range("A24").Select
Application.CutCopyMode = False
Selection.Copy
Range("A25").Select
ActiveSheet.Paste
Range("F5:R6").Select
Application.CutCopyMode = False
Dim NumeroCopie As Integer
NumeroCopie = Range("V54")
ActiveWindow.SelectedSheets.PrintOut Copies:=NumeroCopie, Collate:=True
Range("A19").Select
Selection.Copy
Range("A25").Select
ActiveSheet.Paste
Range("A24").Select
Application.CutCopyMode = False
Selection.Copy
Range("A19").Select
ActiveSheet.Paste
Range("AM17:AT34").Select
Application.CutCopyMode = False
Selection.Copy
Range("AC17").Select
ActiveSheet.Paste
Range("AM40:AT46").Select
Application.CutCopyMode = False
Selection.Copy
Range("AC40").Select
ActiveSheet.Paste
Columns("AL:BD").Select
Range("AL10").Activate
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
Range("AD13").Select
Range( _
"E13,G13,I13,K13,M13,O13,Q13,Q17:Q34,O17:O34,M17:M34,K17:K34,I17:I34,G17:G34,E17:E34,AD40:AJ46,AD17:AJ34,AD13:AJ13" _
).Select
Range("AD13").Activate
ActiveWindow.SmallScroll Down:=30
Range( _
"E13,G13,I13,K13,M13,O13,Q13,Q17:Q34,O17:O34,M17:M34,K17:K34,I17:I34,G17:G34,E17:E34,AD40:AJ46,AD17:AJ34,AD13:AJ13,V54,Y54,D80:S80" _
).Select
Range("D80").Activate
ActiveWindow.SmallScroll Down:=-24
Selection.Locked = False
Selection.FormulaHidden = False
ActiveWindow.SmallScroll Down:=-51
Range("AD13").Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
End Sub |