Fusionner des cellules avec une feuille protégé - Page 2

Précédent
  • 1
  • 2
  1. ccm81 Messages postés 11033 Statut Membre 2 434
     
    Public Sub fusionner()
    Dim plage As Range, co As Long
    If Selection.Count > 1 Then Exit Sub
    co = Selection.Column
    If co <> cosel Then Exit Sub
    ActiveSheet.Unprotect mdp
    Application.DisplayAlerts = False
    Set plage = Selection.Resize(1, 3)
    plage.ClearContents
    plage.Cells(1, 1).Locked = False
    plage.MergeCells = True
    ActiveSheet.Protect DrawingObjects:=True, Contents:=True, _
                Scenarios:=False, AllowFormattingCells:=True, _
                AllowFormattingColumns:=True, AllowFormattingRows:=True
    ActiveSheet.Protect mdp
    Application.DisplayAlerts = True
    End Sub

    Cdlmnt

    0
Précédent
  • 1
  • 2