Et bien si, ça fonctionne .............
Après quelques recherches sur le net, j'ai trouvé l'info pour savoir où placer le code afin d'activer automatiquement les macros à l'ouverture d'un document.
The event procedure won't run unless you instantiate the app variable. You want that to happen automatically when Word starts. Luckily, when Word starts it looks for asub procedure (macro) named AutoExec in the Normal project and runs it before any document is loaded. So create a new public sub procedure named AutoExec (it doesn't have to be in a separate module):
Public Sub AutoExec()
Set app = Application
End Sub
Merci à tous ceux qui ont participé activement à ce post et en particulier à ouskel'n'or
![]()
Partager