DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[B][COLOR="red"]Sub EKLE()[/COLOR][/B]
If [S5] = "" Or [S7] = "" Then Exit Sub
sat = Mid([S7], 2, 255)
Range("A" & sat & ":P" & sat).Insert Shift:=xlDown
Cells(sat, 1) = [S5]
Cells(sat - 1, 16).Copy: Cells(sat, 16).PasteSpecial Paste:=xlPasteFormulas
MsgBox [S5] & ", " & sat & " satırına eklendi."
[S5:S7].ClearContents
[B][COLOR="Red"]End Sub
Sub SIL()[/COLOR][/B]
If [T5] = "" Or WorksheetFunction.CountIf([A:A], [T5]) = 0 Then Exit Sub
sat = WorksheetFunction.Match([T5], [A:A], 0)
Range("A" & sat & ":P" & sat).Delete Shift:=xlUp
MsgBox [T5] & ", " & sat & " satırından silindi."
[T5].ClearContents
[B][COLOR="Red"]End Sub[/COLOR][/B]
Merhaba.
Yanlış anlamıyorsam aşağıdaki kodları kullanabilirsiniz.
.Kod:[B][COLOR="red"]Sub EKLE()[/COLOR][/B] If [S5] = "" Or [S7] = "" Then Exit Sub sat = Mid([S7], 2, 255) Range("A" & sat & ":P" & sat).Insert Shift:=xlDown Cells(sat, 1) = [S5] Cells(sat - 1, 16).Copy: Cells(sat, 16).PasteSpecial Paste:=xlPasteFormulas MsgBox [S5] & ", " & sat & " satırına eklendi." [S5:S7].ClearContents [B][COLOR="Red"]End Sub Sub SIL()[/COLOR][/B] If [T5] = "" Or WorksheetFunction.CountIf([A:A], [T5]) = 0 Then Exit Sub sat = WorksheetFunction.Match([T5], [A:A], 0) Range("A" & sat & ":P" & sat).Delete Shift:=xlUp MsgBox [T5] & ", " & sat & " satırından silindi." [T5].ClearContents [B][COLOR="Red"]End Sub[/COLOR][/B]