Forum

Run time error 53 c...
 
Notifications
Clear all

Run time error 53 calling Shell

2 Posts
1 Users
0 Reactions
135 Views
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
Topic starter
 

Hi,

I am trying to run other software (OasisMontaj.exe, Windisp.exe) via Excel Macro. But it always show this 'run time error 53'.

It doesn't happen when I try to open Notepad.exe or calc.exe. 

Anybody know what wrong with my code?

Sub OpenApp()
Dim ProcessID As Double
ProcessID = Shell("Windisp.exe", vbNormalFocus)
AppActivate ProcessID
End Sub

 

Thank yo

 
Posted : 10/02/2021 9:37 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
Topic starter
 

Hi,

Please start your own topic, not tag on to the end of a question that's already answered.  

You need to provide the full path to the executable (whatever that is) for example

ProcessID = Shell("c:program filesWindisp.exe", vbNormalFocus)

Regards

Phil

 
Posted : 11/02/2021 12:43 am
Share: