Private Sub Workbook_Open()
Application.DisplayFullScreen = True ' Plein écran
ActiveWindow.DisplayWorkbookTabs = False ' Masque nom de feuille
ActiveWindow.DisplayHorizontalScrollBar = False ' Masque barre défilement horizontal
ActiveWindow.DisplayVerticalScrollBar = False ' Masque barre défilement vertical
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.DisplayFullScreen = False ' Plein écran
ActiveWindow.DisplayWorkbookTabs = True ' Masque nom de feuille
ActiveWindow.DisplayHorizontalScrollBar = True ' Masque barre défilement horizontal
ActiveWindow.DisplayVerticalScrollBar = True ' Masque barre défilement vertical
End Sub
ActiveWindow.DisplayWorkbookTabs = False
Sub ActiverMenus()
Application.ExecuteExcel4Macro "Show.Toolbar(""Ribbon"", True)"
End Sub
Sub DésactiverMenus()
Application.ExecuteExcel4Macro "Show.Toolbar(""Ribbon"", False)"
End Sub
Private Sub Workbook_Open()
Call DésactiverMenus
End Sub
Sub Test_A()
'Ces trois lignes font la même chose
Call MacroA
MacroA
Application.Run "MacroA"
End Sub
Sub MacroA()
MsgBox Application.UserName
End Sub
Call Macro1(Param1, Param2 ... )
Macro1 Parm1,Param2,...