How to disable Visual Basic Editor in Excel file

G

Guest

Hello,
Can someone tell me how to disable Visual Basic Editor in
Excel file, I think it would be helpful to avoid users
going into the VB editor enviroment by press Ctrl+Break
accidently.

Thanks very much.

Rgds
Shu
 
G

Guest

Insert this line

application.EnableCancelKey =xlDisabled

at the start of your code or in the workbook_open event handler

OR

Protect your code with a password.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top