CAD/CAM discussion forum > CAD > Run VBA while ZWCAD open

Run VBA while ZWCAD open

    
  Subscribe Topic

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 1 of 3

30-12-2010 06:08 . am   |   View his/her posts only
If there is any idea to run a user defined VBA Program in ZWCAD while opening the ZWCAD 2010?

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 2 of 3

 Run VBA while ZWCAD open
31-12-2010 12:12 . am   |   View his/her posts only
Dear sir,

You can use APPLOAD command to load a VBA application, and click the button Startup Suite, and add this VBA here, then it will be loaded automatically everytime you open ZWCAD

But this is only for auto loading, if you want it to be auto RUN after loading, you can write a lisp(.lsp) file like this, and add it to startup suite too.

(command "-vbaload" "C:'changetile.zvb") ;; your vba file path and name
(command "-vbarun" "OEMtitle") ;; macro nameDaniel2010-12-31 00:21:23

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 3 of 3

31-12-2010 02:17 . am   |   View his/her posts only
Great Thanks worked out well
See also
X