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.
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 :
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.Sub OpenConvertMe() Dim RetVal RetVal = Shell("C:\WINDOWS\Convert.EXE", 1) End Sub
---------------------------------------------------------------------------------------------------------------------
Paul
Remember: Tell us WHAT you want to do, not HOW you think you want to do it
1. Use [CODE] ....[/CODE ] Tags for readability
[CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
2. Upload an example
Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
3. Mark the thread as [Solved] when you have an answer
Thread Tools (on the top right corner, above the first message)
4. Read the Forum FAQ, especially the part about cross-posting in other forums
http://www.vbaexpress.com/forum/faq...._new_faq_item3
I just got the below to bring my Amazon Music app to the front:
Sub test() AppActivate ("Amazon Music") End Sub
If things don't change they stay the same
Quite often there is a picnic problem (problem in chair not in computer)
"We were not told it was impossible, so we did it."