Changer état d'un bouton sous excel

Résolu
Jperrio Messages postés 71 Date d'inscription   Statut Membre Dernière intervention   -  
Jperrio Messages postés 71 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

Je cherche à changer l'état d'un bouton sous excel (le rendre visible ou invisble) à partir d'une application en VB

Voici mon code actuel

If Form2.Text1 = "" Then
If Form2.Text2 = "" Then
myshell = Shell("C:\Program Files\Microsoft Office\Office12\EXCEL.exe ""c:\Feuilles de Garde\EZgarde.xls""", 1)
Sheets("Garde").CommandButton4.Visible = False
End If
End If

En fait le problème se situe à la ligne Sheets("Garde").CommandButton4.Visible = False, le bouton ne change pas.

Qui peut m'aider ?

Merci
A voir également:

1 réponse

Jperrio Messages postés 71 Date d'inscription   Statut Membre Dernière intervention   4
 
df
0