Private Sub CommandButton a ek

aydgur

Altın Üye
Katılım
31 Ekim 2005
Mesajlar
431
Excel Vers. ve Dili
Excel 2007 Türkçe
Altın Üyelik Bitiş Tarihi
04-03-2028
Private Sub CommandButton2_Click()

Dim sut As Range
Set sut = Sheets("STOK").[V2]
Do While sut <> ""
Set sut = sut.Offset(1, 0)
Loop
sut = TextBox1
TextBox1 = ""
TextBox1.SetFocus
Set sut = Nothing
Sheets("ANASAYFA").Select
Unload Me
End Sub.....Bu koda TextBox3 de yazanı STOK sayfası W2 den itibaren yzdır diye ekleme yapabilirmiyim ?
 

aydgur

Altın Üye
Katılım
31 Ekim 2005
Mesajlar
431
Excel Vers. ve Dili
Excel 2007 Türkçe
Altın Üyelik Bitiş Tarihi
04-03-2028
Private Sub CommandButton2_Click()

Dim sut As Range
Set sut = Sheets("STOK").[V2]
Do While sut <> ""
Set sut = sut.Offset(1, 0)
Loop
sut = TextBox1
TextBox1 = ""
TextBox1.SetFocus
Set sut = Nothing

Set sut = Sheets("STOK").[W2]
Do While sut <> ""
Set sut = sut.Offset(1, 0)
Loop
sut = TextBox3
TextBox3 = ""
TextBox3.SetFocus
Set sut = Nothing

Sheets("ANASAYFA").Select
Unload Me
End Sub Böyle yaptım oldu ,ilgilenenler için teşekkür ederim.
 
Üst