+ Reply to Thread
Results 1 to 8 of 8

VBA Highlight Row On Cell Value Change

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Highlight Row On Cell Value Change

    Hi, I wonder whether someone may be able to help me please.

    I'm trying to put together a very simple script which performs the following:
    • Look in column B of my sheet.
    • If the value of "Submitted" is found shade the row from columns B:O.
    • If the value of "Unsubmitted" is found, do not shade the row.

    In addition, I would like to highlight or remove the row highlight when the cell value changes, rather than by a 'Button Click'

    The code which I've put together so far is shown below, but I'm receiving a compile error when I run it.

    Please Login or Register  to view this content.
    I just wondered whether someone may be able to look at this please and let me know where I'm going wrong.

    Many thanks and kind regards

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: VBA Highlight Row On Cell Value Change

    May be try this…

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Highlight Row On Cell Value Change

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Highlight Row On Cell Value Change

    Hi @AB33, thank you for taking the time to reply to my post and for the solution.

    I'm trying to activate this macro upon a cell change being madein column B, so I've tried to adapt the code you kindly provide to:

    Please Login or Register  to view this content.
    But unfortunately I'm receiving an error when I run this.

    Could you possibly tell me please where I've gone wrong?

    Many thanks and kind regards

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA Highlight Row On Cell Value Change

    Please Login or Register  to view this content.
    Or you could use on the second line

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA Highlight Row On Cell Value Change

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Highlight Row On Cell Value Change

    Hi @John H Davis, thank you very much for taking the time to reply to my post and for putting the solution toegether, it is greatly appreciated.

    Kind Regards

  8. #8
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Highlight Row On Cell Value Change

    Hi @SixthSense thank you for taking the time to reply to my post and for putting the solution toegther, it is greatly appreciated.

    Kind Regards

+ 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. [SOLVED] Formula to highlight cell (or change font color) when condition is met
    By Maezee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2013, 04:17 PM
  2. [SOLVED] Highlight Row of Active Cell on Worksheet Selection Change
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2012, 02:23 AM
  3. Replies: 1
    Last Post: 02-29-2012, 03:36 PM
  4. [SOLVED] Highlight entire document and try to change font - won't change.
    By murzy03 in forum Excel General
    Replies: 1
    Last Post: 05-08-2006, 02:05 PM
  5. change cursor to highlight cell I'm in
    By BMac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2006, 01:30 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