J'aimerai savoir si il est possible de faire une copie d'une feuille avec une protection et quand je copie cette feuille la protection s'enlève sur la nouvelle feuille. (C'est pour protéger ma feuille source)
Option Explicit
Public Sub CopyWorksheet()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = ActiveWorkbook
Set ws = wb.Worksheets("Modèle")
ws.Copy after:=wb.Worksheets(Worksheets.Count)
ActiveSheet.Unprotect
Set ws = Nothing: Set wb = Nothing
End Sub