|
| |||||||||
| Tags: excel file, hide, password, vb editor, vba code, very hidden, xls file |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| How to Hide VBA Code?
I use lot of template sheets to generate the charts and also I write the VBA code for the automation of certain functions in Excel file and I have save them as XLS file. I have to give it to my clients and they want to run my programs on their site. And that requires the copy of the main Excel workbook that contains my templates and VBA code. Now I don't want to let them see my contents and want to hide them. How can I hide the VBA code .?Has anyone did this before?? Please help me by providing the helpful information.!
__________________ Whats my name again? I spend so much time looking at code i fogot my own name ahhh! |
|
#2
| |||
| |||
| Re: How to Hide VBA Code?
For keeping your VBA code safe you can also give the password to that file. You can give the password as described in the following steps :
|
|
#3
| ||||
| ||||
| Re: How to Hide VBA Code?
Even I recommend you to activate the worksheet to be protected, then choose Tools - Protection - Protect Sheet. After doing this you will be asked for the password. If you give the password, later on for working on Worksheet that password will be required. Every cell has two two key attributes : Hidden and Locked. By default, all cells are locked, but they are not hidden. I know how to hide the Cell. Follow the steps to hide the Cell :
|
|
#4
| ||||
| ||||
| Re: How to Hide VBA Code?
According to me the worksheet protection is not a security feature. Actually the encryption system used by the Excel is very simple for worksheet protection. To protect the worksheet with a password, the other users can also used to unprotect the worksheet. So, it's very easy to break a worksheet which is password-protected. I also think that worksheet protection is not really intended to prevent people from accessing data in a worksheet. Excel is not the best platform to keep your data secure. |
|
#5
| ||||
| ||||
| Re: How to Hide VBA Code?
By using a "very hidden" statement the maximum user can be kept away from viewing the sheet. Use a following VBA statement to make a sheet very hidden : Sheets("Sheet1").Visible = xlVeryHidden When you try to see the list of hidden sheets, a "very hidden" sheet will not appear in that list. This will appear only when the user selects Format - Sheet - Unhide. This task can be done only by those who know the VBA well. |
|
#6
| ||||
| ||||
| Re: How to Hide VBA Code?
I would recommend you to protect your Workbook. You can do this by selecting the Tools - Protection - Protect Workbook. The Structure checkbox should be checked in the Protect Workbook dialog box. If you are giving any password, it will be required to unprotect the workbook. When a Workbook is protected, the user may not do the following things :
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to Hide VBA Code?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I hide JavaScript code of my application? | Emiliana | Software Development | 6 | 22-08-2011 01:10 AM |
| Is there a way to hide these? | ed | Active Directory | 1 | 22-06-2010 12:17 PM |
| Auto-Hide toolbar won't hide? | Geoff from LA | Vista Help | 8 | 18-10-2009 07:52 AM |
| How to hide source code in JAVA | Jacek | Software Development | 4 | 11-05-2009 10:42 AM |
| Hide the source code of a Web page | Antonio00 | Software Development | 2 | 17-09-2008 07:23 PM |