Código [Seleccionar]
Option Explicit
Private Declare Function SetForegroundWindow Lib "USER32" (ByVal hwnd As Long) As Long
Private Declare Function FindWindow Lib "USER32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Sub Command1_Click()
If Option1 = True Then Call SetForegroundWindow(FindWindow("notepad", vbNullString))
End Sub
S2