What is VBA?

What is VBA?

Anonymous
Not applicable
233 Views
3 Replies
Message 1 of 4

What is VBA?

Anonymous
Not applicable
I have some code to a VBA file that would be very useful but I am not familiar with VBA. Can someone help me?
0 Likes
234 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
VBA = Visual Basic for Applications (It's a programming language.)


What kind of help do you need?

0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks for responding Mark. The VBA file I have is
supposed to assign shortcut commands to drawing specific entities on a given
layer. For example if I invoke the line command it will draw a line on layer
'line' then change back to the previously set layer. I just stumbled across the
file as a give away but do not know how to use it. Would it just be easier to do
this through scripting? Thanks again,

Danny


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
VBA
= Visual Basic for Applications (It's a programming language.)

What kind of help do you need?

0 Likes
Message 4 of 4

Anonymous
Not applicable
"DWel" wrote in message
news:4814285194038CF11DD8589C8C47D9EF@in.WebX.maYIadrTaRb...

Would it just be easier to do this through scripting?


James thinks:
Not if the VBA you received is working code. The best way to find that out
is to try to run it. To do that, you'd either load the VBA project into a
new Autocad session (if it's a DVB file), or start a new VBA project and
paste the code into it (if it's a BAS, CLS or FRM file).

Use command VBAMAN to Load an existing project or Start a new one, and then
click 'VBA Editor' to get into the IDE (editor)

Double-click on the various forms, classes, modules, or ThisDrawing listed
on the left side of the screen, in order to see the code.


It sounds like the code uses Events, which means it will run itself whenever
you run a command.

If you don't trust the code, you can copy and paste it into a message to
this NG, and people can review it to make sure it's nothing malicious.

James
0 Likes