Anyone know how I would return which object on a form has the focus? Probably very simple (like me)... Oh, I'd like it to work on a control array too.
Printable View
Anyone know how I would return which object on a form has the focus? Probably very simple (like me)... Oh, I'd like it to work on a control array too.
On Error Resume Next
MsgBox ActiveControl.Name & "(" & ActiveControl.Index & ")"
If Err.Number > 0 Then MsgBox ActiveControl.Name
Thanks Roger, guess what, I'd just figured it out (purely by chance!)