1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Sub importProdVte()
Dim wkA As Workbook, wkB As Workbook
Dim chemin As String, fichier As String
Dim j As Long
Application.ScreenUpdating = False
Set wkA = ThisWorkbook
Set f3 = Sheets("Jurgen")
chemin = "C:\Users\......"
fichier = "Vendeur.xlsm"
Workbooks.Open chemin & "\" & fichier
Set wkB = ActiveWorkbook
Set f2 = Sheets("Prospects")
j = wkB.Application.WorksheetFunction.CountA(f2.Range("$A:$A")) - 4
k = j + 9
Set Plage1 = Range(Cells(1, 1), Cells(j, 26))
Set Plage2 = Range(Cells(10, 1), Cells(k, 26))
wkA.f3.Plage1.Value = wkB.f2.Plage2.Text 'erreur 438 propriété ou méthode non gérée...
wkB.Close True
Application.ScreenUpdating = True
End Sub |
Partager