Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

VBA Macro does not appear in Macros menu

jacksonL79XL
Explorer

VBA Macro does not appear in Macros menu

jacksonL79XL
Explorer
Explorer

Hi everyone,

 

I currently do work creating sheets for utility scale solar farm and one part of our work involves labelling numerous rows (can reach around 200 depending on the project). Our current workflow is to employ a VBA macro that places text entities along a path which is similar to the interface for the COPY command with the ARRAY mode enabled. 

 

Currently we keep all our VBA macros in a shared design folder on drop box and will drag and drop the script into the drawing when it is needed to be used. I am currently having the issue where the VBA script will appear in the VBA manager while not appearing in the Run VBA Macro menu, preventing me from using the row labelling script we have. I have made sure to enable Macros when importing the file and reinstalling AutoCAD along with the VBA for AutoCAD. I am using the most current version of AutoCAD. I have included screenshots of the VBA manager and Run VBA menu below for further context.

 

Any feedback is appreciated.

 

Thank you.

jacksonL79XL_0-1737475290137.png

Screenshot of VBA Manager

 

jacksonL79XL_1-1737475325881.png

Screenshot of Run VBA Macro interface

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Likes
Reply
112 Views
3 Replies
Replies (3)

pendean
Community Legend
Community Legend

@jacksonL79XL wrote:

...I am using the most current version of AutoCAD. I have included screenshots of the VBA manager and Run VBA menu below for further context....


I believe the MACROS screen will only display embedded VBA projects, a setting you have turned off (first screenshot) but can be turned on in the second (options button).

 

0 Likes

norman.yuan
Mentor
Mentor

@pendean 

The VBA Macro dialog (command VBARUN) lists available VBA macros from all loaded VBA projects, be it embedded or loaded from DVB file.

 

@jacksonL79XL 

Did you examined the VBA modules of the loaded VBA project in the VBA editor to verify that there are indeed macros there (public subroutines that DO NOT require argument(s) as input)?

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

Ed__Jobe
Mentor
Mentor

If you are dragging files from Dropbox, there's a good chance that the files are blocked. Download the files from Dropbox to a folder. Right click on the file and choose Properties>Unblock. Now go to AutoCAD>Options>Files tab>Trusted Locations and add the folder path to the locations list. Running macros in AutoCAD has to meet security permissions. If your files are in a Trusted Location folder, then they will execute. If you need to keep a reference to the files on Dropbox, use the integration tool that maps a folder to a Dropbox folder, like OneDrive does.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes