'application full over screen by patricktoulon
Sub Ribbonvisible()
Dim Bool: Static Wstate As Long
With Application
Bool = Application.CommandBars("ribbon").Visible
If Bool Then Wstate = .WindowState
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon""," & Array("True", "False")(Abs(Bool)) & ")"
''.DisplayScrollBars = Not Bool
''.DisplayFormulaBar = Not Bool
''.DisplayStatusBar = Not Bool
.WindowState = Array(xlMaximized, Wstate)(Abs(Not Bool))
With ActiveWindow
''.DisplayHeadings = Not Bool
''.DisplayWorkbookTabs = Not Bool
''.DisplayHorizontalScrollBar = Not Bool
''.DisplayVerticalScrollBar = Not Bool
End With
End With
End Sub