Use the SetForegroundWindow API function.


Code:
Private Declare Function SetForegroundWindow _
Lib "user32" (ByVal hwnd As Long) As Long