PDA

View Full Version : lisp for running macro


chrisw.94380
2005-10-28, 10:01 PM
Here is a lisp I have for loading 2 macros and loading one of them. I would like for it to be able to check and see if the macros are loaded before it loads them though. Right now after I initially run the command and do it again a window pops up telling me that they are already loaded and I have to press enter. If there is someway it could check this first before running the vbaload command that would be great. thanks everyone for their help


(defun c:cutsheet ()
(setvar "filedia" 0)
(command "_-VBALOAD" "c:\\alignment.dvb")
(command "_-VBALOAD" "c:\\cutsheet.dvb")
(command "_-VBARUN" "c:\\cutsheet.dvb!modMain.Main")
(setvar "filedia" 1)
)

[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]

mathew.worland
2005-10-28, 10:45 PM
Try looking at VL-VBALOAD and VL-VBARUN

Matt Worland