how to end program if there is an .exe copy of the program that is already runnig?
Printable View
how to end program if there is an .exe copy of the program that is already runnig?
' See if there is already and instance.
If App.PrevInstance Then
' Activate the previous instance
AppActivate App.Title
' Send a key (here SHIFT-key) to set the
' form from the previous instance to the
' top of the screen.
SendKeys "+", True
' Terminate the new instance
Unload Me
End If