Private Sub Workbook_Open()
Worksheets("Accueil").Protect Contents:=True, Password:="1213", UserInterfaceOnly:=True
Worksheets("Collections").Protect Contents:=True, Password:="1213", UserInterfaceOnly:=True
Worksheets("Récompenses").Protect Contents:=True, Password:="1213", UserInterfaceOnly:=True
Worksheets("Cadeaux Friendiums").Protect Contents:=True, Password:="1213", UserInterfaceOnly:=True
'Option du ruban
Sheets("Collections").Activate
Sheets("Récompenses").Activate
Sheets("Cadeaux Friendiums").Activate
Sheets("Accueil").Activate
With Application
.WindowState = xlMaximized
.DisplayFormulaBar = False ' Masquer barre de formule
.DisplayStatusBar = False ' Masque barre status
.DisplayScrollBars = False
.ExecuteExcel4Macro "Show.Toolbar(""Ribbon"", true)" '***********
'.DisplayFullScreen = True ' Full screen
'.CommandBars ("Cell"): .Controls(26).Enabled = False: End With 'bloque le bouton du menu contextuel "fermer le lein ecran"
'.OnKey "{ESC}", "" 'bloque la touche esc
'ThisWorkbook.FullScr = True ' la variable FullScr est positionnée a true
End With
With ActiveWindow
.DisplayHeadings = False ' Masque quadrillage
.DisplayWorkbookTabs = False ' Masquer nom onglets
End With
ExecuteExcel4Macro ("CALL(""user32"",""SetWindowLongA"",""JJJJJ""," & Application.Hwnd & ", " & -16 & ", " & &H94080080 & ")") '***********
End Sub