Dim fctrl1, Fctrl2
Private Sub Frame1_Enter()
On Error Resume Next
If Not fctrl1 Is Nothing Then fctrl1.SetFocus: SendKeys "{up}"
End Sub
Private Sub Frame1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Set fctrl1 = Frame1.ActiveControl
End Sub
Private Sub Frame2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Set Fctrl2 = Frame2.ActiveControl
End Sub
Private Sub Frame2_Enter()
On Error Resume Next
If Not Fctrl2 Is Nothing Then Fctrl2.SetFocus: SendKeys "{up}"
End Sub