Bonjour,
en admettant que c'est toujours les mêmes actions qui se suivent ;
1er Nom du bouton "Action 1"
Test Condition
If Commandbutton1.caption="Action 1" then suite du code vba
Finir le code par un changement de nom:
Commandbutton1.caption="Action 2"
end if
If Commandbutton1.caption="Action 2" then suite du code vba
Finir le code par un changement de nom:
Commandbutton1.caption="Action 3"
end if
If Commandbutton1.caption="Action 3" then suite du code vba
Finir le code parun changement de nom pour retourner à la première action:
Commandbutton1.caption="Action 1"
end if