Hiding Formulas in Formula bar

T

TUNGANA KURMA RAJU

I am facing a unique problem in hiding the cells that have formulas.
I have w/book in which 5 cells(K2:K6) of every sheet has formulas.Range(a2:A6)
in every sheet is database range which I am Updating with the help of
Userform.
I have hidden all the formula cells in every sheet so that nobody edits or
change the formulas. When I am using the userform ,an error message is
triggering
that 'a cell or object which I am changing is read only'.
where I did wrong in hiding formulas?.What I did in hiding formulas is
Selected the cells containing formulas>format >Cells>protection>Checked
Hidden option>ok.Next from Tools Menu>Protection>Protect sheet>Protect
w/sheet and contents of locked cell>allow users to> select locked
cells&select unlocked cells>ok
 
T

TUNGANA KURMA RAJU

This w/book project I made,will be given to a user who will not given access
to access formulas,any minute change will lead to financial scam.
is there any solution?
 
G

Gord Dibben

Sub yourmacro()
ActiveSheet.Unprotect Password:="pword"

do your stuff code

ActiveSheet.Protect Password:="pword"
End Sub


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