Consulting

Results 1 to 3 of 3

Thread: Autofilter Vs Colorindex

  1. #1

    Autofilter Vs Colorindex

    I'm going to use autofilter formula...like the following format...

    .UsedRange.AutoFilter Field:=7, Criteria1:="<>"
    but how can I do this with colorindex?
    It seems .UsedRange.AutoFilter Field:=7, Criteria1:="colorindex=6" doesn't work, how can I modify it?

    Thanks

  2. #2
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hi Dreamer,

    Try checking out Zack's AutoFilter Column by Color KB Entry.

    HTH,
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Dreamer
    I'm going to use autofilter formula...like the following format...

    .UsedRange.AutoFilter Field:=7, Criteria1:="<>"

    but how can I do this with colorindex?
    It seems .UsedRange.AutoFilter Field:=7, Criteria1:="colorindex=6" doesn't work, how can I modify it?

    Thanks
    Ron de Bruin has an add-in that does it all http://www.rondebruin.nl/easyfilter.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •