Private Sub Workbook_Open()
Sheets("Feuil1").OLEObjects("essai").Visible = Timer / 3600 < 5 Or Timer / 3600 > 12
Application.OnTime 5 / 24, ThisWorkbook.CodeName & ".Maqsque"
Application.OnTime 12 / 24, ThisWorkbook.CodeName & ".Affiche"
[QUOTE="fanfan38, post: 20525021, member: 10774"]
Bonjour
Ci joint ma solution
A+ François
[/QUOTE]
Me.Saved = True 'évite l'invite à la fermeture si aucune modification
End Sub
Sub Masque()
Sheets("Feuil1").OLEObjects("essai").Visible = False
End Sub
Sub Affiche()
Sheets("Feuil1").OLEObjects("essai").Visible = True
End Sub