- Katılım
- 5 Eylül 2007
- Mesajlar
- 1,247
- Excel Vers. ve Dili
- ofis 2010
iyi günler; çok userForm'lu çalışma kitabım var. Diğerlerinde sorun yaşamıyorum ancak
bu Userformda sorun yaşıyorum. Excel hangi çalışma sayfasındaysa onun A sütününü listeliyor olması. çalışma olarak excel çalışma sayfasını gizleyip Formlaral işlem yapıyorum.
Kod:
Private Sub CommandButton1_Click()
Sheets("KDV_TAKIP").Select
Sheets("KDV_TAKIP").Range("A65536").End(xlUp).Offset(1) = TextBox1.Text
KDV.ListBox1.RowSource = "A2:A" & Cells(Rows.Count, "A").End(3).Row
MsgBox "Veri Girişi Yapıldı.", vbOKOnly
TextBox1 = Empty
TextBox1.SetFocus
End Sub
Private Sub CommandButton2_Click()
Unload Me
FORM_GIRIS.Show
End Sub
Private Sub CommandButton3_Click()
sor = MsgBox("Silmek istediğinizden eminmisiniz?", vbYesNo)
If sor = vbNo Then Exit Sub
sat = ListBox1.ListIndex + 2
ListBox1.RowSource = vbNullString
Range("A" & sat).Interior.ColorIndex = 25
Range("A" & sat & ":A" & sat).Delete
UserForm_Initialize
MsgBox "SEÇİLEN VERİ SİLİNMİŞTİR"
TextBox1.Text = ""
KDV.ListBox1.RowSource = "A2:A" & Cells(Rows.Count, "A").End(3).Row
End Sub
Private Sub ListBox1_Click()
End Sub
Private Sub UserForm_Initialize()
KDV.ListBox1.RowSource = "A2:A" & Cells(Rows.Count, "A").End(3).Row
End Sub
