Sub archivage()
If ActiveCell.Column < 9 Or ActiveCell.Column > 9 Then
MSG = MsgBox("Veuillez sélectionner une case dans la Colonne 'Com'", vbCritical, "Attention")
Exit Sub
ElseIf ActiveCell.Row < 10 Or ActiveCell.Row > 32 Then
MSG = MsgBox("Rien à selectionner dans cette partie de la feuille", vbCritical, "Attention")
Exit Sub
Else
Dim rs As Range, rd As Range
With Sheets("Rapport")
Set rs = .Range(ActiveCell, ActiveCell.Offset(0, 6))
Set rd = Sheets("Suivi_Actions").Range("A65536").End(xlUp).Offset(1, 0)
rs.Copy
rd.PasteSpecial xlFormats
rd.PasteSpecial xlValues
End With
Application.CutCopyMode = False
Sheets("Suivi_Actions").Select
Cells(Range("A65536").End(xlUp).Row - 0, 1).Select
Range(ActiveCell, ActiveCell.Offset(0, 6)).Select
Selection.Borders(xlDiagonalDown).LineStyle = xlNone
Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
End If
End Sub