- Katılım
- 20 Ocak 2020
- Mesajlar
- 247
- Excel Vers. ve Dili
- Office 2016 TR 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub aktifSilahlarıListele()
Sheets("AktifSilahsızlar").Select
Dim SonSatir As Long
SonSatir = Cells(Rows.Count, "A").End(xlUp).Row
listSilahsiz.ColumnCount = 9
listSilahsiz.RowSource = "A2:I" & SonSatir
listSilahsiz.ColumnWidths = "40;70;80;70;100;200;60;;75;200"
With ThisWorkbook.Worksheets("AktifSilahsızlar").Sort
.SortFields.Add2 Key:=Range("G:G"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortTextAsNumbers
.SetRange Range("A1:I33")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Merhaba..
aktifSilahlarıListele kodlarını silin yerine aşağıdaki kodu ekleyin.
Kod:Private Sub aktifSilahlarıListele() Sheets("AktifSilahsızlar").Select Dim SonSatir As Long SonSatir = Cells(Rows.Count, "A").End(xlUp).Row listSilahsiz.ColumnCount = 9 listSilahsiz.RowSource = "A2:I" & SonSatir listSilahsiz.ColumnWidths = "40;70;80;70;100;200;60;;75;200" With ThisWorkbook.Worksheets("AktifSilahsızlar").Sort .SortFields.Add2 Key:=Range("G:G"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortTextAsNumbers .SetRange Range("A1:I33") .Header = xlYes .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With End Sub