Bonjour
j'ai un problème dans une macro
J'ai un bouton qui lance une macro qui est dans un autre fichier
mais cela me donne une
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 Private Sub CommandButton5_Click() Nom_Classeur = ActiveWorkbook.Name fichier_xls = ThisWorkbook.Name nomRep = Application.ThisWorkbook.Path nomRep = nomRep + "\DQ_MACRO.xls" Workbooks.Open Filename:=nomRep Windows(fichier_xls).Activate Application.Run ("'DQ_MACRO.xls'!macro2") Windows("DQ_MACRO.xls").Activate ActiveWorkbook.Close End Sub
"Erreur d'exécution '9'
L'indice n'appartient pas à la sélection"
Merci de votre aide
@+
Partager