Bonjour à tous et à toutes,
Voilà je manipule des UserForm et je rencontre un problème.
J'ai une macro ou je lance un premier UserForm avec la commande :
UserForm1.Show
Sur ce UserForm y a plusieur choix à faire et il y a deux CommandButton un OK et l'autre Annuler.
Qd je clique sur OK un deuxième UserForm s'affiche.
Le code dans CommandButton_OK est :
UserForm2.Show
Unload UserForm1
Dans le deuxième UserForm, il y a trois CommandButton : Un OK Un Retour et un Annuler.
Qd je veux cliquer sur retour, je voudrais revenir au UserForm1 et don j'écris dans CommandButton_Retour le code suivant :
UserForm1.Show
Unload UserFom2
Et la il y a un bug lors de la compilation.
Pourquoi? Quelqu'un aurait t'il la solution?
Merci d'avance
Voilà je manipule des UserForm et je rencontre un problème.
J'ai une macro ou je lance un premier UserForm avec la commande :
UserForm1.Show
Sur ce UserForm y a plusieur choix à faire et il y a deux CommandButton un OK et l'autre Annuler.
Qd je clique sur OK un deuxième UserForm s'affiche.
Le code dans CommandButton_OK est :
UserForm2.Show
Unload UserForm1
Dans le deuxième UserForm, il y a trois CommandButton : Un OK Un Retour et un Annuler.
Qd je veux cliquer sur retour, je voudrais revenir au UserForm1 et don j'écris dans CommandButton_Retour le code suivant :
UserForm1.Show
Unload UserFom2
Et la il y a un bug lors de la compilation.
Pourquoi? Quelqu'un aurait t'il la solution?
Merci d'avance