- Katılım
- 12 Ekim 2010
- Mesajlar
- 224
- Excel Vers. ve Dili
- 2013 türkçe
- Altın Üyelik Bitiş Tarihi
- 01-03-2021
Değerli arkadaşlar 3 farklı örnek ile satırlara alt alta veri eklemeyle ilgili örnekte, merak ediyorum acaba en stabil çalışacak olan hızlı olan ve doğru olan kod hangisi olur. Nedeni ile birlikte kısa bir açıklama yapabilirseniz çok memnun olurum.
Private Sub CommandButton21_Click()
For i = 1 To Range("b65000").End(3).Row + 1
If Cells(i, 2) = "" Then
Cells(i, 2) = TextBox21
End If
Next i
End Sub
Private Sub CommandButton22_Click()
Dim secili As Range
Dim satir As String
Set secili = Range("b65000")
satir = secili.End(3).Row + 1
Cells(satir, 2) = TextBox21
End Sub
Private Sub CommandButton23_Click()
satir = Range("b65000").End(3).Row + 1
Cells(satir, 2) = TextBox21
End Sub
Private Sub CommandButton21_Click()
For i = 1 To Range("b65000").End(3).Row + 1
If Cells(i, 2) = "" Then
Cells(i, 2) = TextBox21
End If
Next i
End Sub
Private Sub CommandButton22_Click()
Dim secili As Range
Dim satir As String
Set secili = Range("b65000")
satir = secili.End(3).Row + 1
Cells(satir, 2) = TextBox21
End Sub
Private Sub CommandButton23_Click()
satir = Range("b65000").End(3).Row + 1
Cells(satir, 2) = TextBox21
End Sub