Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

API VBA: Run macro @ startup

60 views
Skip to first unread message

Corey Scheich

unread,
Aug 28, 2003, 11:03:59 AM8/28/03
to
In VBA under SolidWorks Objects/ThisLibrary you can add the event

Private Sub Workspace_Startup()
MsgBox "You Started Solidworks"
End Sub

The question is how do you get the macro to be read at Startup so that the
code would be run. I figured out a way to have a macro wait for events in
the background, just can't figure out how to have it start while SW is
loading. I know you could do this with a .DLL but is there a way without
one.

Thanks,
Corey Scheich


Dale Dunn

unread,
Aug 28, 2003, 12:01:20 PM8/28/03
to
Use the /m switch in your SW shortcut. For example:

"C:\Program Files\SolidWorks 2004\SLDWORKS.exe" /m "C:\FUE\doc type watcher
\applauncher.swp"

--
Dale Dunn
Design Engineer
www.jamestool.com

Corey Scheich

unread,
Aug 28, 2003, 12:29:50 PM8/28/03
to
That works swell!!!

"Dale Dunn" <daledun...@jamestool.com> wrote in message
news:Xns93E57A63999EBda...@65.24.7.150...

0 new messages