arkadaşlar merhaba.
örnek kotlardan bir tane kod buldum fakat kot hep a5 hüçresine yapıştırıyor.
ben her sefer 1 altına yapıştırmassını istiyorum
bana yardımcı olursanız sevinirim.
Private Sub CommandButton1_Click()
Range("a5").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Ofset(1, 0).Select
Loop
If Range("a5").Value = "" Then
Range("a5").Value = 1
Range("a5").Select
Else
ActiveCell.Value = ActiveCell.Offset(-1, 0) + 1
End If
ActiveCell.Offset(0, 1).Value = TextBox1.Text
ActiveCell.Offset(0, 2).Value = TextBox2.Text
ActiveCell.Offset(0, 3).Value = TextBox3.Text
ActiveCell.Offset(0, 4).Value = TextBox4.Text
ActiveCell.Offset(0, 5).Value = TextBox5.Text
ActiveCell.Offset(0, 7).Value = TextBox6.Text
ActiveCell.Offset(0, 8).Value = TextBox7.Text
ActiveCell.Offset(0, 9).Value = TextBox8.Text
ActiveCell.Offset(0, 10).Value = TextBox9.Text
ActiveCell.Offset(0, 11).Value = TextBox10.Text
ActiveCell.Offset(0, 12).Value = TextBox11.Text
ActiveCell.Offset(0, 13).Value = TextBox12.Text
örnek kotlardan bir tane kod buldum fakat kot hep a5 hüçresine yapıştırıyor.
ben her sefer 1 altına yapıştırmassını istiyorum
bana yardımcı olursanız sevinirim.
Private Sub CommandButton1_Click()
Range("a5").Select
Do While Not IsEmpty(ActiveCell)
ActiveCell.Ofset(1, 0).Select
Loop
If Range("a5").Value = "" Then
Range("a5").Value = 1
Range("a5").Select
Else
ActiveCell.Value = ActiveCell.Offset(-1, 0) + 1
End If
ActiveCell.Offset(0, 1).Value = TextBox1.Text
ActiveCell.Offset(0, 2).Value = TextBox2.Text
ActiveCell.Offset(0, 3).Value = TextBox3.Text
ActiveCell.Offset(0, 4).Value = TextBox4.Text
ActiveCell.Offset(0, 5).Value = TextBox5.Text
ActiveCell.Offset(0, 7).Value = TextBox6.Text
ActiveCell.Offset(0, 8).Value = TextBox7.Text
ActiveCell.Offset(0, 9).Value = TextBox8.Text
ActiveCell.Offset(0, 10).Value = TextBox9.Text
ActiveCell.Offset(0, 11).Value = TextBox10.Text
ActiveCell.Offset(0, 12).Value = TextBox11.Text
ActiveCell.Offset(0, 13).Value = TextBox12.Text
Ekli dosyalar
Son düzenleme:
