VBA not loading to AutoCAD 2025(VBA enabler already installed)

VBA not loading to AutoCAD 2025(VBA enabler already installed)

pranjal_srivastava
Observer Observer
881 Views
8 Replies
Message 1 of 9

VBA not loading to AutoCAD 2025(VBA enabler already installed)

pranjal_srivastava
Observer
Observer

Please guide me

0 Likes
882 Views
8 Replies
Replies (8)
Message 2 of 9

Ed__Jobe
Mentor
Mentor

We need more information. Are you sure that you installed the VBA module for 2025? Can you run the VBAMAN command? How do you know it’s not working?

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
Message 3 of 9

pranjal_srivastava
Observer
Observer

I have tried is running it through VBA enabler manually. But its not working when tried through commandbox.

0 Likes
Message 4 of 9

norman.yuan
Mentor
Mentor

Well, if you really want to get some MEANINGFUL HELP, you SHOULD provide more details as what you have done, what exactly "...not working..." means.

 

Please explain IN DETAIL(!!!) what happens when you "... have tried is running it through VBA enabler manually..." ? Does it mean you installed AutoCAD 2025 VBA Enabler manually? If so, is the installation completed successfully? That is, after its install, you start AutoCAD, enter command "VBAMAN", or "VBAIDE", you either see VBA Manager dialog box pops up, or see VBA Editor window open. If the either of the 2 commands does not work as expected, then you have VBA Enabler installation issue. You DID NOT make it clear if you problem is installation issue.

 

In case, the VBA installation is indeed installed OK, then your "...not working..." may mean your VBA code project does not work as expected. In that case, there could be many different reasons, but unless you are willing to provide more details, no one would be able to help.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 5 of 9

Ed__Jobe
Mentor
Mentor

In addition to what @norman.yuan said, you did not answer my questions. From your thread title, all I can assume is that you had some code from a previous version, then upgraded to 2025 and now it's not loading. I have to assume this, and I might be wrong, because you didn't say exactly what you did and what symptoms you have. The reason I asked you to run the VBAMAN command is that if the vba enabler is installed, then the command will show a dialog listing all the loaded projects. If the enabler is not working, then it will pop a link to download the enabler. If the VBAMAN command works, does your project show that it is loaded? 

 

If you are having trouble understanding and speaking English, then use Bing Translator to translate Hindi to English.

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
Message 6 of 9

pranjal_srivastava
Observer
Observer

Vb manager is popping up guys. My macro code has a user form in it. When giving this input to command box: (vl-vbarun "tcv_tb1.dvb") , the form is not appearing.

0 Likes
Message 7 of 9

Ed__Jobe
Mentor
Mentor

Can you manually load the dvb using the VBAMAN dialog? 

The vbarun command expects you to enter a public sub, not the name of the dvb. First, you need to specify the path to the dvb, so it can be found. Use the vl-vbaload command. Second, you need to specify a public sub contained in the dvb. 

 

It is possible to specify the macro name and the dvb at the same time. Below is a sample from my  mnl file.

 

(setq supdir "c:\\AcadCustom\\support_GS\\")
(vl-vbaload (strcat supdir "TextUtilities.dvb"))
(defun c:LineSpace ()
  (vl-vbarun "modTextUtils.LineSpace")
  (princ)
)

 

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
Message 8 of 9

tim11_manhhieu
Advocate
Advocate

click at Visual Basic Editor and show me what you have

tim11_manhhieu_0-1745799856278.png

 

0 Likes
Message 9 of 9

pranjal_srivastava
Observer
Observer

Hi All,

Thanks for your response. Re-Installation helped me.

0 Likes