D
DAVIDRUN
Guest
Bonjour et bonne année à toutes et à tous,
Quelqu'un saurait-il comment changer définitivement la propriété d'un
bouton (Backcolor sur cet exemple), tout cela par macro?
Voici mon code :
Sub CommandButton20_Click()
If CommandButton20.BackColor = &H8000000F Then
CommandButton20.BackColor = &H80FF&
UserForm3.CommandButton20.BackColor = &H80FF&
Else
CommandButton20.BackColor = &H8000000F
UserForm3.CommandButton20.BackColor = &H8000000F
End If
UserForm3.Show
End Sub
Ici la propriété .Backcolor est changée sur l'userform du CommandButton20
mais également sur le CommandButton20 de l'Userform3.
En temps réel celà fonctionne, cependant lorsque je quitte, aucuns
changements n'est fait sur la couleur du bouton...
Merci d'avance pour votre aide
à +
Quelqu'un saurait-il comment changer définitivement la propriété d'un
bouton (Backcolor sur cet exemple), tout cela par macro?
Voici mon code :
Sub CommandButton20_Click()
If CommandButton20.BackColor = &H8000000F Then
CommandButton20.BackColor = &H80FF&
UserForm3.CommandButton20.BackColor = &H80FF&
Else
CommandButton20.BackColor = &H8000000F
UserForm3.CommandButton20.BackColor = &H8000000F
End If
UserForm3.Show
End Sub
Ici la propriété .Backcolor est changée sur l'userform du CommandButton20
mais également sur le CommandButton20 de l'Userform3.
En temps réel celà fonctionne, cependant lorsque je quitte, aucuns
changements n'est fait sur la couleur du bouton...
Merci d'avance pour votre aide
à +