Bonjour à toutes et à tous,
j'ai a problem avec une macro, je n'arrive pas à la faire marcher, aparement il y a un problem avec le range pour selectioner les cellules.
Je vous montre la macro:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 If Range("d" & t) = "Datas" Then Workbooks.Open Filename:=Range("a" & t) nblignes = ActiveSheet.UsedRange.Rows.Count Sheets("Datas").Select Range("A1").Select Dim col As Integer col = col For col = 1 To 90 If col > 90 Then Range("L" & Range("a" & Rows.Count).End(xlUp).Row + 1).Select ActiveCell.FormulaR1C1 = "Il n'y a pas cette information dans le fichier" Else If Range(1 & col) = "CCE" Then Range(2 & col).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Windows("CATALOGUE.xls").Activate Sheets("CP ou EM").Select Range("a" & Range("a" & Rows.Count).End(xlUp).Row + 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=True, Transpose:=False End If End If Next col End If
l'erreur que j'ai est l'Erreur d'execution '1004'
La méthode 'Range de l'objet _Globak' a échué.
merci beaucoup.
![]()
Partager