modifier l image d'un bouton en VBA
Bonjour à tous,
J'ai un souci pour modifier l'image d'un bouton, le code bloque sur la ligne 7 et surement sur la ligne 9.
Je n'ai rien trouvé dans l'aide et ne sais pas si c'est ma syntaxe qui n'est pas bonne ou si c'est du au espaces dans le chemin réseau 06 - MLM
Code:
1 2 3 4 5 6 7 8 9 10
| if Forms![F_fond].Form![SF_ML]!etiq_avce_gest_CAF.BackColor = 5167783 _
and Forms![F_fond].Form![SF_ML]!etiq_avce_gest_H24.BackColor = 5167783 _
and Forms![F_fond].Form![SF_ML]!etiq_avce_gest_NDF.BackColor = 5167783 _
and Forms![F_fond].Form![SF_ML]!etiq_avce_gest_A7.BackColor = 5167783 _
and Forms![F_fond].Form![SF_ML]!etiq_avce_gest_RLM.BackColor = 5167783 then
Forms![F_fond].Form![SF_ML]!but_envoi_checklist.Picture = "V:\....\IPM\06 - MLM\sources\editer.bmp"
else
Forms![F_fond].Form![SF_ML]!but_envoi_checklist.Picture = "V:\....\IPM\06 - MLM\sources\bouton_orange_50p.bmp"
end if |
merci pour votre aide et belle journée🌞