DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Ömer hocam yoğunsunuz galiba, dosyaya son bir hamle yapacaktınız..?
Dosyayı ekledim.
Bun şekilde yapılabilirmi bilmiyorum ama, yapılırsa veri girişlerinde zamandan kazanacağım. Yok böyle birşey yapılamaz derseniz bu şekliyle girişlerime başlayacağım.
Ömer hocam ekteki örnektir. Üst kısmı boş bırakma ve alt kısımda yeni veri girişi yapma gibi bir işlem yok. Ben Her kartta bulunan verileri girip, tabloyu temizleyip yeni kart verilerini gireceğim.
Private Sub CommandButton1_Click()
Dim Sv As Worksheet, sOnf As Long, sOnV As Long
Set Sv = Sheets("Veri")
sOnf = Cells.Find("*", , , , xlByRows, xlPrevious).Row
sOnV = Sv.Cells.Find("*", , , , xlByRows, xlPrevious).Row + 1
Application.ScreenUpdating = False
If WorksheetFunction.CountA([A3:A65536]) = 0 Then Exit Sub
Range("A3:I" & sOnf).Copy
Sv.Range("A" & sOnV).PasteSpecial xlPasteValues, xlNone
Application.CutCopyMode = False
Range("A3:I" & Rows.Count).ClearContents
Application.ScreenUpdating = True
MsgBox "Aktarım Tamamlandı", vbInformation
End Sub
Dosyanın bir önceki halini eklemeyi unutmuşum.. ektedir.
Private Sub CommandButton1_Click()
Dim Sv As Worksheet, sOnf As Long, sOnV As Long, sOnY As Long
Set Sv = Sheets("Veri")
sOnf = Cells.Find("*", , , , xlByRows, xlPrevious).Row
sOnV = Sv.Cells.Find("*", , , , xlByRows, xlPrevious).Row + 1
Application.ScreenUpdating = False
On Error GoTo Devam
If WorksheetFunction.CountA([A3:A65536]) = 0 Then Exit Sub
Range("A3:I" & sOnf).Copy
Sv.Range("A" & sOnV).PasteSpecial xlPasteValues, xlNone
Application.CutCopyMode = False
Range("A3:I" & Rows.Count).ClearContents
Sheets("Veri").Select
sOnY = Sv.Cells.Cells.Find("*", , , , xlByRows, xlPrevious).Row
Sv.Range("A2:C" & sOnY).SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=R[-1]C"
Devam:
Sv.Range("A1").Select
Application.ScreenUpdating = True
MsgBox "Aktarım Tamamlandı", vbInformation
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [G3:H65000]) Is Nothing Then Exit Sub
Range("I" & Target.Row) = "=H" & Target.Row & "-G" & Target.Row & ""
End Sub