ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA code in Excel (https://www.excelbanter.com/excel-programming/379592-vba-code-excel.html)

danh

VBA code in Excel
 
I have been writing a VBA code called Auto_Open which runs as I open my excel
document. I would like to hide this code with a password so that other
people do not see it or edit it. How do I hide this with a password?

Thank you
Danielle

Martin Fishlock

VBA code in Excel
 
In the VBA editor open Tools|VBA Project Properties... and select the
protection tab and set as desired.
--
Hope this helps
Martin Fishlock
Please do not forget to rate this reply.


"danh" wrote:

I have been writing a VBA code called Auto_Open which runs as I open my excel
document. I would like to hide this code with a password so that other
people do not see it or edit it. How do I hide this with a password?

Thank you
Danielle



All times are GMT +1. The time now is 01:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com