+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting based off Cell Input Change

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Conditional Formatting based off Cell Input Change

    Instructions are on attachment. Need to conditional format cells so that if someone makes change, it will highlight.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Formatting based off Cell Input Change

    Try this...

    Right click on Sheet1 Tab --> View Code --> Paste the code given below in the code window --> Close VBA editor --> Save your workbook as Excel Macro-Enabled Workbook.
    Please Login or Register  to view this content.
    Change the value of any cell in col. A and see if the cell is highlighted.
    Is this what you are trying to achieve?
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Conditional Formatting based off Cell Input Change

    I have multiple excel files that all look the same (same look and amount of columns, just more rows due to more promos). What do I need to change within the macro toadjust to the attached file? Previous attachment was a dummy example. Please see this attached file. The cells in Column J and W on both September and October is
    what needs targeted. So if someone changes a value in the cells in column J and W, then it needs to highlight so I know they changed it.

    FYI one cell is red for a reason due to a conditional formatting rule I have in place so ignore that.
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Formatting based off Cell Input Change

    Try this.....
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Conditional Formatting based off Cell Input Change

    This is awesome! Thank you soo much!

  6. #6
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Conditional Formatting based off Cell Input Change

    One more thing. It seems like when I run macro, everything works flawlessly but I lose the undo button at top. I need to have that function back in case someone doesn't mean to type in a change.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Conditional Formatting based off Cell Input Change

    The macro will be run automatically when a change occurs in the targeted range and worksheet Undo will be disabled. One way around this is you can code a macro like this ...

    The scenario would be like this...

    1). if someone tries to change the values in the targeted range, the target cell will be highlighted and the changed value will not be accepted and the cell will always display the original value. Like if in one cell in the targeted range is 4.99 and someone tries to change it to 5.99, the code will highlight that cell to tell you that somebody has tried to change the value of this cell and place the original value 4.99 again in that cell. So the user cannot change the values of the targeted range.

    2). If the cell in the targeted range is 4.99 initially and user type 4.99 (same value) in that cell, nothing will happen because he did not change the value of the cell.

    If this is the scenario you are willing to work with, you can try following code...

    Please Login or Register  to view this content.
    Last edited by sktneer; 07-23-2014 at 05:14 AM.

  8. #8
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Conditional Formatting based off Cell Input Change

    Ok I like the original scenario where it highlights cell and records their new value. I will have to make do with the fact that undo will be disabled. Thanks again.

  9. #9
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Conditional Formatting based off Cell Input Change

    Is it possible to revise this macro where if a cell is blank and someone enters a price, it will also highlight blue? So it will highlight blue if someone makes a change OR enters a value into a blank cell within columns J and W.

+ 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] Conditional Formatting Columns based off Cell Input
    By eguirocker3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-24-2014, 09:54 AM
  2. Replies: 6
    Last Post: 07-18-2013, 04:16 AM
  3. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  4. Conditional Formatting based on change in one cell
    By Jadvancing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 06:45 PM
  5. [SOLVED] Conditional Formatting to Change Cell Colour Based on Date
    By Kym2101 in forum Excel General
    Replies: 5
    Last Post: 05-01-2012, 11:41 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