Can you lock cells so data can't be referenced?

L

LGMART1

I need to protect data from being referenced. I can hide the tab, password
protect - but you can go to another tab and reference the worksheet data and
it is visible.
 
H

Harlan Grove

LGMART1 said:
I need to protect data from being referenced. I can hide the tab, password
protect - but you can go to another tab and reference the worksheet data and
it is visible.

Nope. This is impossible in Excel. Anything stored in a worksheet cell
can be accessed by any formula referencing that cell. That's just how
Excel is MEANT to work, so there's no prospect that this would ever
change.

That said, you could use various forms of trickery. Simplest is
obfuscation, meaning adding a lot of estraneous text to any cell
containing your actual data. You'd need a systematic way to filter the
real data out of the entire cells' contents, but this could be done
relatively efficiently using only formulas. There are various forms of
lightweight encryption, but they'd slow down recalc unless you used to
VBA functions to decrypt. There's also the trick of storing data in
text box controls in hidden worksheets, but you'd have no choice but
to use VBA to access the contents of those text boxes.

None of these tricks would prevent anyone who knows how to bypass
internal password security from unprotecting your workbook, worksheets
and VBA projects and unhiding everything. The simple if unwelcome fact
is that nothing stored in an Excel workbook file is robustly protected.
 
G

Gord Dibben

If the data is within the same workbook, it can be referenced.

In fact it could be referenced from another workbook.


Gord Dibben MS Excel MVP
 

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