Dim ctlCurrentControl As Control
Dim frmCurrentForm As Form
Dim lSelStart As Long
Dim lSelLength As Long
Set frmCurrentForm = Screen.ActiveForm
If frmCurrentForm.Name = "PlayV4" Then
Set ctlCurrentControl = Screen.ActiveControl
With ctlCurrentControl
If .Name = "MinRating" Then
lSelStart = .SelStart
lSelLength = .SelLength
.Value = .Text
.SelStart = lSelStart
.SelLength = lSelLength
End If
End With
End If
|