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 27 28
| dim i as integer
i=8
While Not IsEmpty(Cells(i, AP))
Selection.Copy
Range("G3:I3").Select
ActiveSheet.Paste
' Lancement de la macro top10 public
Workbooks.Open FileName:= _
"\\******Adresse du fichier" _
, UpdateLinks:=0
ActiveWindow.SmallScroll Down:=-12
Calculate
ActiveWindow.SmallScroll Down:=-21
Range("C3").Select
ActiveWindow.SmallScroll Down:=6
Windows("Portfolio endusers within dealer_template.xls").Activate
Sheets("Endusers").Select
Application.Goto Reference:="data"
Selection.Sort Key1:=Range("J4"), Order1:=xlDescending, Key2:=Range("L4") _
, Order2:=xlDescending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, DataOption2 _
:=xlSortNormal
Calculate
ActiveWindow.Close False
Windows("Dashboard Dealers TF_200809.xls").Activate
Range("I30").Select
i = i + 1
Wend |
Partager