DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Row > 1 Or Target.Value = "" Then Exit Sub
SonSatir = Cells.Find("*", , , , xlByRows, xlPrevious).Row
SonSutun = Cells.Find("*", , , , xlByColumns, xlPrevious).Column
Range(Cells(2, 1), Cells(SonSatir, SonSutun)).Sort Key1:=Range(Cells(1, Target.Column), Cells(1, Target.Column))
Cancel = True
End Sub
Necdet hocam olmuştur. Emeğinize sağlık, teşekkürler.Doğru mu anladım bilmiyorum. Aşağıdaki kodları dener misiniz?
Kod:Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Row > 1 Or Target.Value = "" Then Exit Sub SonSatir = Cells.Find("*", , , , xlByRows, xlPrevious).Row SonSutun = Cells.Find("*", , , , xlByColumns, xlPrevious).Column Range(Cells(2, 1), Cells(SonSatir, SonSutun)).Sort Key1:=Range(Cells(1, Target.Column), Cells(1, Target.Column)) Cancel = True End Sub
Doğru mu anladım bilmiyorum. Aşağıdaki kodları dener misiniz?
Kod:Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Row > 1 Or Target.Value = "" Then Exit Sub SonSatir = Cells.Find("*", , , , xlByRows, xlPrevious).Row SonSutun = Cells.Find("*", , , , xlByColumns, xlPrevious).Column Range(Cells(2, 1), Cells(SonSatir, SonSutun)).Sort Key1:=Range(Cells(1, Target.Column), Cells(1, Target.Column)) Cancel = True End Sub