+ Reply to Thread
Results 1 to 6 of 6

Change Row Background Colour When Text Is Entered Into A Cell

  1. #1
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Change Row Background Colour When Text Is Entered Into A Cell

    I have the following code that converts any data entered into the worksheet to upper case.

    Please Login or Register  to view this content.
    I am trying to add a piece of code that will also change the background colour of columns A:F if an “x” is entered into any cell in column F. The code must also remove the formatting if the “x” is deleted.

    For example, if x is entered into F6, the background colour changes for A6:F6.

    I already use conditional formatting in this workbook, so that solution is not really an option.

    Thank you.
    Last edited by AlexRoberts; 11-20-2010 at 01:25 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Change Row Background Colour When Text Is Entered Into A Cell

    Please wrap your code in code tags, before the moderators get you...

    Forum rules
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button.

    Cheers
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Change Row Background Colour When Text Is Entered Into A Cell

    Try this
    Please Login or Register  to view this content.

    Hope this helps

    [EDIT]

    Do you need the highlighted row in upper case?
    If so what do you want it returned to when "X" is deleted?
    Last edited by Marcol; 11-19-2010 at 12:36 PM.

  4. #4
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Change Row Background Colour When Text Is Entered Into A Cell

    Marcol,

    Thank you, tested the code this morning and it works like a dream, saved me alot of time.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Change Row Background Colour When Text Is Entered Into A Cell

    Happy to have helped.

    Could you now take some time to wrap your code, in your original post, in code tags.

    Then if you are happy with the solution, mark the thread solved.

  6. #6
    Registered User
    Join Date
    10-24-2010
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Change Row Background Colour When Text Is Entered Into A Cell

    I have now wrapped the code in tags and marked the thread as solved,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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