- Katılım
- 8 Temmuz 2004
- Mesajlar
- 254
- Excel Vers. ve Dili
- office 2007-mssql 2008 R2
selam
userformda da textbox ta enter'a basılınca command1 butonunu çalıştırıp tekrar textbox'a focus olmasını istiyorum.
kod şu ama olmuyor(yada yanlış var)
cursor ısrarla butonun üzerine focus oluyor.
kolay gelsin
userformda da textbox ta enter'a basılınca command1 butonunu çalıştırıp tekrar textbox'a focus olmasını istiyorum.
kod şu ama olmuyor(yada yanlış var)
Kod:
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 13 Then
CommandButton1_Click
TextBox1.SetFocus
Else
End If
End Sub
kolay gelsin