Excel 2000 Protect ... But Free Filter

  • Thread starter Thread starter sal21
  • Start date Start date
S

sal21

I have make a protection on a sheet, it contain a flitre, when i push on
this filtre is not active!!!!!

My problem is activate a protection on sheet and free the filtre....
ARG.....
 
In code in the workbook open event you need to do

worksheets("Sheet1").EnableAutofilter = True
worksheets("Sheet1").Protect UserinterfaceOnly:=True

see help on the protect method for explanation of UsedInterfaceOnly setting.
 

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