Focus auf Texboxnach Enter
07.02.2006 15:27:40
Gisela
kann mir bitte jemand helfen, wie ich den Focus nach Enter wieder auf die TB 4 bekomme.
So wie ichs jetzt habe funktionierts nicht.
Private Sub EnableButton()
CommandButton23.Enabled = _
TextBox4 <> "" And ComboBox7 <> ""
With TextBox4
.Visible = True
.SetFocus
End With
End Sub
Private Sub TextBox4_Change()
EnableButton
End Sub
Private Sub ComboBox7_Change()
EnableButton
Sheets("AD").Activate
Dim lngZeile As Long
lngZeile = ComboBox7.ListIndex + 3
If lngZeile > 0 Then
'Übernahme AD
TextBox93.Value = Cells(lngZeile, 4).Value
TextBox96.Value = Cells(lngZeile, 7).Value
TextBox98.Value = Cells(lngZeile, 1).Value
End If
End Sub
Vielen Dank und liebe Grüße
Gisela