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
| Sheets("FM Run").Select
Range("B2:AD837").Select
Selection.Sort Key1:=Range("B2"), Order1:=xlDescending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A4").Select
Sheets("FM Report").Select
Dim REFERENCE As Variant
For Each Rw In Selection.Rows
If Rw.Cells("C")= "" Then go to "REGI". Select cell.
If "REGI"= (AMER"Or"EURO"Or"TRAV"Or"ASIE") Then select SS ZEP
import destination:=Worksheets("FM Run").
Cells(Ligne, 6).EntireRow
Rw.Import Destination:=Worksheets("FM Run").Cells(Ligne, 1).EntireRow
"D rows"Value =
Cells.EntireRow.AutoFit
Range("A4:AL837").Select
Selection.Sort Key1:=Range("M2"), Order1:=xlDescending, Key2:=Range("C2") _
, Order2:=xlDescending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
Range("A1").Select
End Sub |
Partager