Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to make AutoCAD run a VBA script, but I can't seem to load the script properly.
Sub hello()
MsgBox ("Hello World")
End Sub
This runs perfectly when I execute the script.
I save the script as hello.dvb
Now, when I close the drawing and reopen it, my VBA script is gone from the editor.
Trying to reload it, using the command VBALOAD and loading hello.dvb into the drawing should allow me to run the script again, but looking in the VBA editor, my script has not been loaded.
Am I doing something wrong here?
Solved! Go to Solution.