+ Reply to Thread
Results 1 to 4 of 4

VBA to filter source column by search field input and/or conditional formatted cell color

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    VBA to filter source column by search field input and/or conditional formatted cell color

    Hill all. I need to use VBA to filter source column by search field input and/or conditional formatted cell color. Thanks to DBY here
    HTML Code: 
    for helping get the Search cell working, but I think to get the optimal results, VBA will be required to use the search cell as needed and I have no clue how to achieve this. There will be over 500 cells in column 'A' that contain text, hyperlinks to their respective sheets, and conditional formatting to color the cells red, yellow, or green based on the results of the respective sheet cells 'C1:C3'. Any help is appreciated.

    Andrew
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: VBA to filter source column by search field input and/or conditional formatted cell co

    I just tried to record a macro to do what I need
    Please Login or Register  to view this content.
    but the result was that "ri" provided 2 records, the autofilter for the 'red' cells displayed the 3 red cells in the column instead of the one that matched 'ri' and was red, so possibly ANDing them together somehow would work.

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: VBA to filter source column by search field input and/or conditional formatted cell co

    Found
    HTML Code: 
    which explains VBA autofolter but since Criteria1 is an variable text input and Criteria2 is a variable cell color input, I have no clue how to implement it, if it is even possible using this example. I think if I can have a search cell for the user to enter some text and some colored cells for the user to select the desired color to search for, those variables would be saved in Criteria1 and Criteria2 for the code to use.
    Last edited by drewship; 01-26-2016 at 08:33 AM.

  4. #4
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: VBA to filter source column by search field input and/or conditional formatted cell co

    Anyone have the knowledge to do this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search for specific cell based off Row/Column and input data into that cell
    By dizzle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2014, 01:53 PM
  2. Replies: 0
    Last Post: 10-01-2012, 09:00 AM
  3. [SOLVED] Macro to manually input which field (column) to autofilter on using an input prompt
    By rin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2012, 09:35 AM
  4. Replies: 4
    Last Post: 07-30-2010, 09:19 AM
  5. Replies: 0
    Last Post: 07-21-2010, 01:43 PM
  6. How to save formatted date in the input field
    By ksduded in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2008, 09:44 AM
  7. Conditional Formatted Cell Color Index
    By MDR5300 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-27-2005, 06:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1