ok et alors?
donc vu que tu doit pouvoir changer de feuille
je bloque la ligne workbooktabls pour pouvoir selectionner des feuille
et tu met mon code dans dans le module thisworkbook
et tu ajoute dans l'event sheetactivate la suppression du heading
comme ceci
'*****************************************************************************************************
' ___ _ _______ __ _ ____ _ _ _______ ___ _ _ _ ___ _ _.
' // \\ /\\ // // \\ // // // // // // \\ // // // // \\ //| //
' //___// //__\ // //__// // // //__// // // // // // // // // // | //
' // // \\ // // \\ // // // \\ // // // // // // // // // | //
'// // // // // // // //___ // \\ // \\__// //__// //___ \\__// // |//
'****************************************************************************************************
'application full over screen et vice et versa
Public Sub Ribbonvisible()
Dim Bool: Static Wstate As Long, W&, H&
With Application
Bool = Application.CommandBars("ribbon").Visible
If Bool Then Wstate = .WindowState
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon""," & Array("True", "False")(Abs(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
W = Application.Width
H = Application.Height + 20
.WindowState = xlNormal
.Top = Array(0, -22)(Abs(Bool))
.Left = 0
.Height = H
.Width = W
End With
End Sub
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
ActiveWindow.DisplayHeadings = Application.CommandBars("ribbon").Visible
End Sub
voilà c'est simple