• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Satır ekleme ve sıralalama

şunu deneyiniz..

Sub ayır()
For Z = [a10000].End(3).Row To p + 3 Step -1
If Cells(Z, "C") = "TRHBTR2A" Or Cells(Z, "C") = "PAMUTRIS" Then
Rows(Z + 1).Insert
Rows(Z + 2).Insert
Range("a1:h1").Copy
Range("a" & Z + 2).PasteSpecial
Rows(Z + 1).Interior.Color = vbYellow
Rows(Z + 2).Interior.Color = vbYellow
Range("a" & 2 & ":" & "h" & Z).Sort key1:=Range("h" & 2), order1:=xlDescending
Range("a" & Z + 3 & ":" & "h" & [a10000].End(3).Row).Sort key1:=Range("h" & Z + 3), order1:=xlDescending
GoTo j
End If
Next Z
j:
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
 
Son düzenleme:
Çok teşeklür ederim.
 
Geri
Üst