Perso j'utilise ça :
Dans un module :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Option Compare Database
Option Explicit
Dim StateRibbon As Boolean
Function DisplayRibbon()
' Auteur : Fabrice CONSTANS (MVP)
' Description : Affiche/cache le ruban
' ctrl+shift+R
Nz StateRibbon, False ' 1er passage initialise à faux (ribbon invisible)
DoCmd.ShowToolbar "Ribbon", IIf(StateRibbon, acToolbarNo, acToolbarYes)
StateRibbon = Not StateRibbon ' inverse la valeur
End Function |
Avec une macro Autokeys :
+^{R} ExecuterCode DisplayRibbon()
J'affiche/cache sur un simple raccourci clavier.
Cordialement,
Partager