1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Option Explicit
Public info As Booléan
Public MonRuban As IRibbonUI
Sub RubanCharge(ribbon As IRibbonUI)
Set MonRuban = ribbon
info = "Veuillez importez votre fichier CSV à l'aide du bouton IMPORT" 'étant le message de départ que je veux afficher et ensuite modifié...
MonRuban.InvalidateControl "info"
End Sub
'Callback for info getLabel
Sub ValeurInfo(control As IRibbonControl, ByRef returnedVal)
returnedVal = info
End Sub
'et cette partie étant celle qui déclenche mon action et doit aussi rafraichir le label de la barre info...
'Callback for Import onAction
Sub Import(control As IRibbonControl)
Call ImportCSV
info = "test la modif affichage"
'Tu rafraîchi le ruban
MonRuban.InvalidateControl "info"
End Sub |