Autofilter on protected work book?

G

Guest

Autofilter works on a protected workbook, but not when it is a line in a
macro, e.g.:

Selection.AutoFilter Field:=1, Criteria1:="YES"

It cause a macro error. This is true even if I enable 'Allow all user of
the workbook to Use Autofilter'. I'm sure I've done this before and it
worked, but not now.

Does anyone know if this is a bug in 2003? Or a way around it? Or another
way of selecting a number of rows by a single criterion (in a macro)?
 

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