+ Reply to Thread
Results 1 to 11 of 11

Find All and highlight selected rows

  1. #1
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Post Find All and highlight selected rows

    Good day...

    Please make some adjustment to existing code or
    new vba code in order to get the best results below:

    1. Search only from B15:U99999
    2. Results highlighted only from:B15 to:U99999 not entire rows (ex: B15:U15; B20:U20)
    3. If I need to search new again it will removed the previous highlighted rows and
    highlight only for the current search.
    4. if C5 = empty then clear all highlighted rows from B15:U99999

    Thanks...

    See attached file FYI.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Find All and highlight selected rows

    Here is how I would attack this with VBA

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Find All and highlight selected rows

    Thanks sir, can you make the highlight of the selected cells by rows starting from column B to U instead of selected cells only.
    Just like highlighting the entire rows but only from column B to U.
    I tried to clear C5 and it didn't clear all highlighted cells...

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Find All and highlight selected rows

    If I am understanding you correctly, then

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Find All and highlight selected rows

    Thank you so much sir, works great...

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find All and highlight selected rows

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Find All and highlight selected rows

    Can you add some code it here sir as an option on my needs.

    Show only the highlighted rows just like the filtered results.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Find All and highlight selected rows

    Please Login or Register  to view this content.
    Why are we doing this piecemeal?

  9. #9
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Find All and highlight selected rows

    Can you add function if i clear C5 it will return all data(unfiltered).

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Find All and highlight selected rows

    I believe if you clear the data in C5 that you will see that it does exactly what you are asking? Did you even bother to test it for this? You asked for this in Post #3

    Please Login or Register  to view this content.
    When I delete the data in C5 and run the VBA, it unhighlights all cells and removes all filtering.

  11. #11
    Forum Contributor
    Join Date
    04-22-2016
    Location
    Philippines
    MS-Off Ver
    2016 & Office365
    Posts
    139

    Re: Find All and highlight selected rows

    Sorry sir, it's my fault coz I made a second button and still connected to post#4 instead of post#8.
    it's working now, thank you so much for your help...

+ 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. Queries: Highlight on selected cells and rows.
    By jinx88 in forum Excel General
    Replies: 3
    Last Post: 11-23-2019, 01:28 AM
  2. Replies: 3
    Last Post: 09-15-2016, 11:10 AM
  3. Highlight Selected Cell When Using FIND
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-10-2016, 02:53 PM
  4. How to highlight selected row and column via find facility
    By hanamichi sakuragi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2015, 12:06 PM
  5. Quick way to find and highlight multiple rows?
    By tnovak in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-14-2014, 01:09 PM
  6. Replies: 0
    Last Post: 10-15-2012, 01:58 PM
  7. Find 2 Matches Wors Then Cut Selected Rows
    By bernardng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2006, 01:10 AM

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