Private Sub Workbook_Open()
Worksheets("Rappels de Pied Percé").Protect Password:="", UserInterfaceOnly:=True
With ActiveWindow
.WindowState = xlNormal
Application.Left = 1
Application.Top = 1
Application.Width = 1000 'largeur 957
Application.Height = 650 'hauteur
End With
Application.MoveAfterReturn = True
Application.ScreenUpdating = False
Application.EnableEvents = False
If Application.CommandBars.Item("Ribbon").Height > 100 Then
CreateObject("wscript.shell").SendKeys "^{F1}"
End If
Dim PauseTime, Start, Finish, TotalTime
PauseTime = 1 ' Définit la durée.
Start = Timer ' Définit l'heure de début.
Do While Timer < Start + PauseTime
DoEvents ' Donne le contrôle à d'autres processus.
Loop
Sheets("Rappels de Pied Percé").Select
Application.EnableEvents = True
Application.ScreenUpdating = True
Application.MoveAfterReturn = True
End Sub