Excel Macro

  • Thread starter Thread starter jc lewis
  • Start date Start date
J

jc lewis

Will a macro in .xls follow your keystroke and open another
application say for example photoshop or some non-windows app.

Thanks
jc lewis
 
Not while recording.

You have to stick Shell code into the recorded macro.

Example of code to open Internet Explorer........

Sub Internet_Explorer()
Dim taskID As Variant
On Error Resume Next
taskID = Shell("start iexplore.exe") 'enter your command here
If Err <> 0 Then _
MsgBox "IEXPLORE.EXE is not installed on your machine."
End Sub

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top