Protecting cells problem

B

brian.baker13

Hi

I have a spreadsheet where there is a lot of cells I want locked and
seven columns where Operators input data(one column/day)

I also run an autofilter as a macro when the sheet is opened to look
at non-blanks & also have a macro which clears out the Operator
inputted cells at week start when pressed. These two things won't work
when I have protected cells I get the message Runtime error 1004 you
cannot use this command on a protected sheet.

How can I get around this please?

Thanks

Brian
 
D

Dave Peterson

Maybe you can just add a couple of lines to your macro.

Near the top, unprotect the worksheet
then do your autofilter
then protect your worksheet
 
B

brian.baker13

Maybe you can just add a couple of lines to your macro.

Near the top, unprotect the worksheet
then do your autofilter
then protect your worksheet










--

Dave Peterson- Hide quoted text -

- Show quoted text -

Sorted Dave,
Thanks

Brian
 

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