Sheets("Giderler").Select
If TextBox1 = "" Or TextBox2 = "" Or TextBox3 = "" Or TextBox4 = "" Or TextBox5 = "" Or TextBox6 = "" Then 'Boş alan engelle
MsgBox "Lütfen Tüm Alanları Doldurunuz!..", vbExclamation, "Irmak Yazılım"
Exit Sub
End If
If Range("A2").Value = "" Then ' Forma yazılanları Gelirler Sayfasına aktar
Range("A2").Select
ActiveCell.Value = 1
ActiveCell.Offset(0, 1) = TextBox1
ActiveCell.Offset(0, 2) = TextBox2
ActiveCell.Offset(0, 3) = TextBox3
ActiveCell.Offset(0, 4) = TextBox4
ActiveCell.Offset(0, 5) = TextBox5
ActiveCell.Offset(0, 6) = TextBox6
Else
[A65536].End(xlUp).Offset(1, 0).Select ' Boşlukları görür sıradaki satıra yazması için
ActiveCell = ActiveCell.Offset(-1, 0) + 1
ActiveCell.Offset(0, 1) = TextBox1
ActiveCell.Offset(0, 2) = TextBox2
ActiveCell.Offset(0, 3) = TextBox3
ActiveCell.Offset(0, 4) = TextBox4
ActiveCell.Offset(0, 5) = TextBox5
ActiveCell.Offset(0, 6) = TextBox6
Bu kod Sayfanın ilk 4 satırı dolu iken 5.satırından itibaren doğru çalışıyor ama ben ilk 2 satır başlık iken 3.satırdan itibaren başlatmak istiyorum. Dosya ektedir.
If TextBox1 = "" Or TextBox2 = "" Or TextBox3 = "" Or TextBox4 = "" Or TextBox5 = "" Or TextBox6 = "" Then 'Boş alan engelle
MsgBox "Lütfen Tüm Alanları Doldurunuz!..", vbExclamation, "Irmak Yazılım"
Exit Sub
End If
If Range("A2").Value = "" Then ' Forma yazılanları Gelirler Sayfasına aktar
Range("A2").Select
ActiveCell.Value = 1
ActiveCell.Offset(0, 1) = TextBox1
ActiveCell.Offset(0, 2) = TextBox2
ActiveCell.Offset(0, 3) = TextBox3
ActiveCell.Offset(0, 4) = TextBox4
ActiveCell.Offset(0, 5) = TextBox5
ActiveCell.Offset(0, 6) = TextBox6
Else
[A65536].End(xlUp).Offset(1, 0).Select ' Boşlukları görür sıradaki satıra yazması için
ActiveCell = ActiveCell.Offset(-1, 0) + 1
ActiveCell.Offset(0, 1) = TextBox1
ActiveCell.Offset(0, 2) = TextBox2
ActiveCell.Offset(0, 3) = TextBox3
ActiveCell.Offset(0, 4) = TextBox4
ActiveCell.Offset(0, 5) = TextBox5
ActiveCell.Offset(0, 6) = TextBox6
Bu kod Sayfanın ilk 4 satırı dolu iken 5.satırından itibaren doğru çalışıyor ama ben ilk 2 satır başlık iken 3.satırdan itibaren başlatmak istiyorum. Dosya ektedir.
