Bonjour Nowhereman,
Ce code VBA est pour masquer / afficher ruban & barre de formule (alternativement, une fois sur deux) :
Sub Essai()
With Application
If .DisplayFormulaBar Then
.DisplayFormulaBar = False
If .CommandBars("Ribbon").Height > 100 Then SendKeys "^{F1}"
Else
.DisplayFormulaBar = True
If .CommandBars("Ribbon").Height < 100 Then SendKeys "^{F1}"
End If
End With
End Sub
Pour masquer automatiquement ruban & barre de formule à l'ouverture du classeur, mettre dans ThisWorkbook :
Private Sub Workbook_Open()
With Application
If .CommandBars("Ribbon").Height > 100 Then SendKeys "^{F1}"
.DisplayFormulaBar = False
End With
End Sub
(ceci à la place du code VBA précédent, pas en plus)
Cordialement