Aşağıdaki makro ile her zaman 6 satırdaki verileri bir veritabanına gönderiyorum ancak yıl sonunda dosya verilerle dolduğundan geç açılıyor .6 satırdan bazen sadece ilk satırda bazen bazen bazende tamamı dolu oluyor.satır boş olduğunda veya 0 olduğunda o veriyi seçmesede sadece dolu olan satırları gönderebilirmiyiz.?iyi çalışmalar diliyorum.
Private Sub CommandButton4_Click()
'
' gönder1 Makro
' '
Range("DL27").Select
ActiveWindow.LargeScroll Down:=1
Range("DL69").Select
ActiveWindow.LargeScroll Down:=1
Range("DL105").Select
ActiveWindow.LargeScroll Down:=1
Range("DL140").Select
ActiveWindow.LargeScroll Down:=1
Range("DL175").Select
ActiveWindow.SmallScroll ToRight:=-8
Range("DJ157:GE162").Select
Selection.Copy
Workbooks.Open Filename:="C:\VERİTABANLARI\VERİTABANI1.xls"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.EntireRow.Insert
Range("A6").Select
ActiveWorkbook.Save
ActiveWindow.Close
Range("DJ157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("CL157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("BV157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("BE157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("A157").Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Range("B11:E12").Select
End Sub
Private Sub CommandButton4_Click()
'
' gönder1 Makro
' '
Range("DL27").Select
ActiveWindow.LargeScroll Down:=1
Range("DL69").Select
ActiveWindow.LargeScroll Down:=1
Range("DL105").Select
ActiveWindow.LargeScroll Down:=1
Range("DL140").Select
ActiveWindow.LargeScroll Down:=1
Range("DL175").Select
ActiveWindow.SmallScroll ToRight:=-8
Range("DJ157:GE162").Select
Selection.Copy
Workbooks.Open Filename:="C:\VERİTABANLARI\VERİTABANI1.xls"
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Selection.EntireRow.Insert
Range("A6").Select
ActiveWorkbook.Save
ActiveWindow.Close
Range("DJ157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("CL157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("BV157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("BE157").Select
ActiveWindow.LargeScroll ToRight:=-1
Range("A157").Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Selection.End(xlUp).Select
Range("B11:E12").Select
End Sub