Author Topic: VBA Macros and Toolbars  (Read 969 times)

0 Members and 1 Guest are viewing this topic.

Murph

  • Bull Frog
  • Posts: 402
  • P.I.T.A.
VBA Macros and Toolbars
« on: September 06, 2006, 12:39:49 PM »
I have just been upgraded to 2006 and now my .mnl files will not work when I try to call a VBA macro.
I posted here because anyone that just works with Lisp may not know the fix.

MNL syntax:
Code: [Select]
(defun c:PICKME(/)
       (command "vbastmt" "PickMe"))

When I hit the toolbar button I get 'Syntax Error' in the text window.
Has anyone else encountered this and, if so, how did you fix it?
Murphy's Law applies to all.
Whatever can go wrong, will, and at the most inopportune time.

Murph

  • Bull Frog
  • Posts: 402
  • P.I.T.A.
Re: VBA Macros and Toolbars
« Reply #1 on: September 06, 2006, 12:59:24 PM »
Instead of deleting this I will post what I found out.

I quit out of Autocad and went back into it.
Everything works fine now.

Rassin, frassin, Autocad!!!
Murphy's Law applies to all.
Whatever can go wrong, will, and at the most inopportune time.