Arkadaşlar, kod yazmayı bilmediğim için ihtiyacım olan kodları forumdan buluyorum. Aynı sayfada iki tane Private sub makrosu olduğundan kodlar çalışmıyor. Kodlar aşağıda veriyorum. İlginiz ve yardımlarınız için şimdiden teşekkür ederim.
Private Sub Worksheet_Change(ByVal Target As Range) 'Otomatik Sıralama Makrosu
On Error Resume Next
If Intersect(Target, [k3:k65536]) Is Nothing Then Exit Sub
If Target.Value = "" Then Exit Sub
Range(Cells(3, "a"), Cells(Target.Row, "k")).Select
Selection.Sort Key1:=Range("a3"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Target.Offset(1, -10).Select
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
Set S2 = Sheets("Kontrol")
If Target <> "" Then
S2.[A4] = Target
S2.[A4].AutoFill Destination:=S2.[A4:A65536], Type:=xlFillDays
End If
Set S2 = Nothing
End Sub
Private Sub Worksheet_Change(ByVal Target As Range) 'Otomatik Sıralama Makrosu
On Error Resume Next
If Intersect(Target, [k3:k65536]) Is Nothing Then Exit Sub
If Target.Value = "" Then Exit Sub
Range(Cells(3, "a"), Cells(Target.Row, "k")).Select
Selection.Sort Key1:=Range("a3"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Target.Offset(1, -10).Select
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
Set S2 = Sheets("Kontrol")
If Target <> "" Then
S2.[A4] = Target
S2.[A4].AutoFill Destination:=S2.[A4:A65536], Type:=xlFillDays
End If
Set S2 = Nothing
End Sub