+ Reply to Thread
Results 1 to 6 of 6

Highlight green based on value in cell

  1. #1
    Registered User
    Join Date
    05-01-2023
    Location
    Singapore
    MS-Off Ver
    (Version 2302 Build 16.0.16130.20378) 64-bit
    Posts
    66

    Highlight green based on value in cell

    Hi all! Would appreciate the help on the problem below.

    I wish to have the button 'Run' run a macro vba code that highlights the correct row green when the Identifier and Key matches what is input into Cell F3 and F4 respectively. Kindly refer to the screenshots below for reference.

    photo_2023-08-24 16.36.34.jpeg

    photo_2023-08-24 16.36.36.jpeg

    Really appreciate any help I can get! Thank you!

    Edit: Attached the sample workbook below!

    Test.xlsm
    Last edited by webcam723; 08-24-2023 at 10:42 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Highlight green based on value in cell

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Highlight green based on value in cell

    Pretty sure you can do this with Conditional Formatting rather than VBA.

  4. #4
    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,836

    Re: Highlight green based on value in cell

    Yes, it can be done with conditional formatting.

    @webcam - do you prefer VBA or CF? Either way, please provide a sample workbook.
    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.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Highlight green based on value in cell

    CF Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    05-01-2023
    Location
    Singapore
    MS-Off Ver
    (Version 2302 Build 16.0.16130.20378) 64-bit
    Posts
    66

    Re: Highlight green based on value in cell

    Hi I would really prefer VBA for this. I have attached a sample workbook below.

    Test.xlsm

+ 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. Highlight green when match is found!
    By webcam723 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2023, 06:07 AM
  2. Excel Dark Mode - Changing Green Cell Highlight Color?
    By PinkFloydEffect in forum Excel General
    Replies: 0
    Last Post: 02-15-2023, 08:20 PM
  3. Need Sunburst Point to fill green if cell is green
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2022, 09:56 AM
  4. Highlight time in green based on real time?
    By CC268 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2016, 02:50 PM
  5. [SOLVED] Conditional Format- Highlight (+/-) 20% Green
    By viperpaul22 in forum Excel General
    Replies: 4
    Last Post: 04-03-2015, 06:59 PM
  6. [SOLVED] If Contents of Cell Are X, Then Highlight Cell Green
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-14-2015, 11:11 AM
  7. Replies: 6
    Last Post: 08-23-2012, 12:14 PM

Tags for this Thread

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