Bonjour,
J'ai cette macro qui archive une feuille et met la feuille actuelle à zéro. Cependant les cellules de le feuille ne sont pas déverrouiller, avez vous une idée ?
Sub Nouvelle_feuille_actions()
On Error Resume Next
Dim MSG As Long
MSG = MsgBox("message", vbQuestion + vbYesNo, "Information")
If (MSG = 6) Then
Sheets("Suivi_actions").Select
Sheets("Suivi_actions").Copy Before:=Sheets(3)
Sheets("Suivi_actions (*)").Select
ActiveSheet.Name = Format(Date, "yyyy")
ActiveSheet.Tab.ColorIndex = 54
Sheets("Suivi_actions").Select
Rows("3:250").Select
Selection.Delete Shift:=xlUp
Selection.Locked = False
Selection.RowHeight = 21
Range("A3").Select
End If
End Sub
J'ai cette macro qui archive une feuille et met la feuille actuelle à zéro. Cependant les cellules de le feuille ne sont pas déverrouiller, avez vous une idée ?
Sub Nouvelle_feuille_actions()
On Error Resume Next
Dim MSG As Long
MSG = MsgBox("message", vbQuestion + vbYesNo, "Information")
If (MSG = 6) Then
Sheets("Suivi_actions").Select
Sheets("Suivi_actions").Copy Before:=Sheets(3)
Sheets("Suivi_actions (*)").Select
ActiveSheet.Name = Format(Date, "yyyy")
ActiveSheet.Tab.ColorIndex = 54
Sheets("Suivi_actions").Select
Rows("3:250").Select
Selection.Delete Shift:=xlUp
Selection.Locked = False
Selection.RowHeight = 21
Range("A3").Select
End If
End Sub