ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BSBryan Schmuland06/04/2011

I'm having a strange issue running the shell command (retval = Shell("Z:\PROGRAMS\Open Program\Open Program.exe", vbNormalFocus)).  When I run the vba macro from a macro button on a solidworks toolbar the Open Program.exe will start and show, but in the windows taskbar the program doesn't actually show up until I click on it.  Because the program isn't "fully running" I can't activate it have focus.

If I run it from the VBA editor it works perfectly.  Any ideas?

Bryan