Question : Securly hide contents of worksheet

Hi, I have an Excel VBA project.  
One worksheet contains confidential data that I wish to hide from the end users.
The sheet is needed by the background code which occasionally uses .Range to pull in values.
I have set the sheet to Protected with Hidden Columns and Sheet very hidden.
I have password protected the VBA
I have found that it is still possible to see the content by using the VB Immediate window -
typing in  ?Worksheet.cells(x,y) - returns a value.
Is it possible to completely secure the content of a sheet while still allowing VB to use it?
Thanks

Answer : Securly hide contents of worksheet

>>Is it possible to completely secure the content of a sheet while still allowing VB to use it?

In a word, no.

And BTW, you can also write a formula in Excel that refers to a 'very hidden' worksheet.  If the end user knows the worksheet exists, even if s/he cannot see it, s/he can still find a way to get to the values.

You can try using some sort of encryption on those values, but then your VBA would have to encrypt/decrypt the values, and if anyone can get to the VBA code, then your encryption is compromised.  Don't even say "I can lock the VBA project"--that is very easily hacked.
Random Solutions  
 
programming4us programming4us