Hi everyone.
I'm working on an Excel sheet and one feature I would really need is for it to activate an external window (not Microsoft).
Is this even possible using VBA? Has anyone else had this need?
Thanks in advance.
Printable View
Hi everyone.
I'm working on an Excel sheet and one feature I would really need is for it to activate an external window (not Microsoft).
Is this even possible using VBA? Has anyone else had this need?
Thanks in advance.
See if this works :
Code:Sub RunAnExe()
Dim strX As String, varProc As Variant
On Error Resume Next
strX = "C:\Users\YourComputerNameHere\SomeOther.exe" 'Your path here
varProc = Shell(strX, 1)
End Sub
Or maybe this :
C:\WINDOWS\Convert.EXE" should be the full name and path to the program you want to open.Code:Sub OpenConvertMe()
Dim RetVal
RetVal = Shell("C:\WINDOWS\Convert.EXE", 1)
End Sub
I just got the below to bring my Amazon Music app to the front:
Code:Sub test()
AppActivate ("Amazon Music")
End Sub