Protect data programatically

  • Thread starter Thread starter Malcom
  • Start date Start date
M

Malcom

Hi all,
I have just joined this NG. I found so may solutions here for my problems
that I feel that no books is required if you read this NG regularly.

My problem:
I have a data sheet which is used by many users for data entry. I want to
protect the data and hide rows from the other users. This must be in such a
way that once the sheet is saved, all the rows having data should be hidden
and any user should not be able to see the data.

I know that before save can be used but I dont know how to make data rows
hidden so that they can not unhide and play with it. Moreover I can not
protect the sheet coz even with the user interface=true causes my other
macros fail.

Since everybody is getting answer, I also expect it even though I am new.

Thanks appreciation of any help.
Malc
 
Hi
you can add some lines to your macro so you will be able to use sheet
prtection but your macros will still run:
At the beginning of your macros:
Activesheet.unprotect password:= "your password"

at the end of your macro
Activesheet.protect password:= "your password"
 
I have already tried this but always macro has given unexpected results.
Any other way? Thanks for your reply.
Malc
 
Hi
what 'unexpected' results. You may post the code of this macro in
question
 

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

Back
Top