AutoCAD 2013/2014/2015

Reply
Distinguished Contributor
RafaelMoreno
Posts: 216
Registered: ‎11-06-2006
Message 1 of 2 (79 Views)

Adding a buttom to a tool bar that triggers a VB code.

79 Views, 1 Replies
08-13-2012 10:03 AM

Hi:

 

I have a couple of VB pieces of code that set up the standards of my company. What I want to do create a buttom in my Workspace -within a tab created by me with the CUI tools- and trigger my VB code.

 

 

How is possible to create this buttom?

 

Thanks in advance

 

 

 

Rafael

**Master
dmfrazier
Posts: 2,722
Registered: ‎05-13-2003
Message 2 of 2 (62 Views)

Re: Adding a buttom to a tool bar that triggers a VB code.

08-14-2012 01:59 PM in reply to: RafaelMoreno

You'll get better help posting in the customization group.

 

In the meantime, I think the general form of a CUI macro to run VBA is:

 

^C^C^P(command "-vbaload" "MyVB")(command "-vbarun" "MyVB")(command "vbaunload" "MyVB") 

 

(Note that the macro needs one space after the last parenthesis.)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube