Launching SW Viewer From Command Line

Oct 23, 2003 1 Replies

Hi Folks,



I know there are some command line switches for running SW (/m for invoking a macro) but here is what I need to do. Since the SW Viewer has no type library for VBA (maybe I am wrong) instantiating the viewer form Excel is a little different than starting SW. My guess that one way to do it is to use a command line in shell command. I want to launch a file of a known name into SW Viewer. If I use this line in Excel VBA => Shell "C:\Program Files\SolidWorksViewer\swviewer.exe", vbNormalFocus i get a SW viewer icon on task bar but it won't open?



What I need to get is Excel to launch SW Viewer with a file handed in from VBA. Ideas?



Thanks,


Folks,

Got it!!!!

Lots of correctly placed quotes does the trick using the Shell command.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required