AutoCAD 2013/2014 DWG Format
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Adding a buttom to a tool bar that triggers a VB code.
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
57 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
Re: Adding a buttom to a tool bar that triggers a VB code.
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.)
