zulfuernek
Altın Üye
- Katılım
- 24 Haziran 2017
- Mesajlar
- 754
- Excel Vers. ve Dili
- türkçe
- Altın Üyelik Bitiş Tarihi
- 11-04-2030
Private Sub TextBox4_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If Not ListBox1.ListCount = ListBox1.ListIndex + 1 And ListBox1.ListCount > 0 And KeyCode = 13 Then
ListBox1.ListIndex = ListBox1.ListIndex + 1
TextBox4 = ""
If KeyCode = 13 Then TextBox4.SetFocus
End If
txtSec = True
End Sub
yukarıdaki kodda textboxa değer girince listboxdaki sıradki ismi seçiyor ve daha sonrada textbox 4 ün içerisine girdiğim değeri siliyor.
ancak ben enter tuşuna basınca tekrar textbox 4 ün içerisine imlecin gelmesini istiyorum koddaki kırmızı bölümde nasıl değişiklik yapmam gerekir
If Not ListBox1.ListCount = ListBox1.ListIndex + 1 And ListBox1.ListCount > 0 And KeyCode = 13 Then
ListBox1.ListIndex = ListBox1.ListIndex + 1
TextBox4 = ""
If KeyCode = 13 Then TextBox4.SetFocus
End If
txtSec = True
End Sub
yukarıdaki kodda textboxa değer girince listboxdaki sıradki ismi seçiyor ve daha sonrada textbox 4 ün içerisine girdiğim değeri siliyor.
ancak ben enter tuşuna basınca tekrar textbox 4 ün içerisine imlecin gelmesini istiyorum koddaki kırmızı bölümde nasıl değişiklik yapmam gerekir
Son düzenleme: