mystikal1000
asked on
Disable VB Editor in Excel 2003?
Is there a way to disable VB Editor for all users via registry? We are using a Citrix server and want to disable it on the box.
How about password protecting the code?
ASKER
OK if we disable vba, it will not allow macros to run. Is there a policy or registry setting to figure out only in a certain path, they are allow to run macros, as it would be trusted, otherwise deny running the macros if they running it from a different path location.
Not that I am aware of ... how about signing the approved code ... of course they are at liberty to sign their own code but it would be a bit of a help!
Chris
Chris
So, you really need the code to only run when the workbook is in a certain location as well as protect the code from being see/modified?
ASKER
Correct Aikimark
what are valid locations and what would be examples of invalid locations?
ASKER
c:\macros = valid
all other locations invalid :)
all other locations invalid :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How can I make it run when excel launches, cause this is for Remote Desktop users. Any registry locations, or?
I don't understand. It is your code that you are protecting. If you don't want the code to execute, then it seems like you have what you need. You just need to implement this check in your routines. If you have a Workbook_Open() event coded, then you would also add the check there.
ASKER
Sorry I am just wondering where I can put this code, so it occurs on the server, we have multiple customers logging in and I want to make sure the code is there everytime they load up or create a macro.
I would start by packaging your code as an add-in. That way, the code will be in everyone's Excel environment.
Chris