Auto Filter

D

Dave

Hi

Is there anyway of removing the auto filter from certain columns. I only
want it on the first two and want to be able to remove or hide the button
from the rest?

Thanks
 
J

James

If you just highlight the first two columns and then check the auto filter
that should do the trick. It doesn't work with multiple selections ie columns
that are not side by side.
 
D

Dave Peterson

You can only apply the autofilter to a contiguous range. But you can use code
to remove the dropdown arrows from the columns where you don't want them.

See Debra Dalgleish's site:
http://www.contextures.com/xlautofilter03.html#Hide

If you're new to macros:

Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)
 

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