VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I block visual basic editor?

10 REPLIES 10
Reply
Message 1 of 11
cecelia
288 Views, 10 Replies

Can I block visual basic editor?

We need to prevent end users from accessing the visual basic editor. Is this possible? We need to prevent people from creating new code.
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: cecelia

A simplistic approach would be to UNDEFINE the following commands at startup.

VBAIDE
VBAMAN
VBARUN

What kind of code are they writing? If it can benefit others, I say let them do it.

--
Matt W
[Insert funny quote/saying here]
Message 3 of 11
cecelia
in reply to: cecelia

Would that then prevent them from running approved macros ?
Message 4 of 11
nyme
in reply to: cecelia

Yep it would....

I don't think you could....
If you don't want them to change/access the code of a certain VBA application, consider protecting it with a password. Now keep in mind that these passwords CAN be cracked, but if they do so, you have a bigger problem on your hand then VBA access.... (hope you know what I mean)

Other than that, I would recommend a simple meeting with your designrs (or the persons that you want to block acces) and set some clear rules.... I don't know any other way to disable it...

Sorry, but I hope this helps.
Message 5 of 11
Anonymous
in reply to: cecelia

> Yep it would....
But not if you use (vl-vbarun...

--
Matt W
[Insert funny quote/saying here]
Message 6 of 11
Anonymous
in reply to: cecelia

If it is just that you don't want them to change the dvb, i.e. they can see
the code but not edit, then you can place the dvb on a read-only network
folder.

--
----
Ed
----
Message 7 of 11
arcticad
in reply to: cecelia

or password protect your .dvb files .....
---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 8 of 11
Anonymous
in reply to: cecelia

> We need to prevent end users from accessing the visual basic editor. Is this possible? We need to prevent people from creating
> new code.

But they want to stop users from creating NEW dvbs.



You can always just take AutoCAD away from them. That'll stop 'em! : )

--
Matt W
[Insert funny quote/saying here]
Message 9 of 11
mpmaher
in reply to: cecelia

If you have a password protected dvb file in the load up suite then the user cannot use/edit the project, and i don't know of any way to add a blank project to the VBA IDE

Michael
Message 10 of 11
Anonymous
in reply to: cecelia

Hi Michael,

If a VBA project is loaded and it contains any SUBs, then they are visible
to the user and he can start them.
If there are no visible subs, then how is any one supposed to invoke the
commands within the DVB?

Unless the user knows the password they will not be able to edit the code.

There is no way the user can be prevented from unloading a project.

Nothing will prevent the user from using VBAMAN New from creating an new
project and doing as they like with it.

Quite frankly, this whole discussion is ludicrous. What can a user do with
VBA that is so deleterious that they should not be allowed to do it, and yet
cannot be done with all the other methods of AutoCAD customisation, or with
Windows Explorer, Regedit, the FORMAT command etc.?

Put this command in a menu:
ERASE;All;;QSAVE;;
Need less to say I have tested this.

--

Laurie Comerford
CADApps
www.cadapps.com.au

wrote in message news:5234402@discussion.autodesk.com...
If you have a password protected dvb file in the load up suite then the
user cannot use/edit the project, and i don't know of any way to add a blank
project to the VBA IDE

Michael
Message 11 of 11
mpmaher
in reply to: cecelia

HI Laurie,

Thanks for the tip, I will now go and give it a try. Your right VBA should be available to everyone, thats how i am using it.

Still, you have to admit it is an interesting question.

Michael

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost