+ Reply to Thread
Results 1 to 11 of 11

coloring entire row if specific cell have certain value

  1. #1
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Question coloring entire row if specific cell have certain value

    Hi friends need help

    i have inserted table in worksheet through ribbbon
    the table gets new ROW generated automatically on any value entered, table utilizes column A to K
    so now coming to point
    what i am trying to achieve is if user enters specific text in cell of column B like "Problematic" or "Set Hold" the entire table row should get colored with red color

    Thanks in advance to all gurus

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: coloring entire row if specific cell have certain value

    try the following macro:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Question Re: coloring entire row if specific cell have certain value

    Thanks for reply
    i tried the code but Their is an ERROR ...Msg "Complie Error : Next without For" ......this is for the third Last row "Next icount"

    actually i wanted to use it in USERFORM when the user select that specific text in listbox "Problematic" and create entry in worksheet that entire A:K row should be read..but was not able to do it
    so I pasted it in Modules ..and their the ERROR "Complie Error : Next without For" occured

    i wont be able to reply for the day ...tomorrow i will reply.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: coloring entire row if specific cell have certain value

    see amended code below:
    Please Login or Register  to view this content.

    You can add this to Worksheet_Change event to have it run every time the user amends any value. See attached:Book2.xlsm
    HTH!

  5. #5
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Re: coloring entire row if specific cell have certain value

    Still the same Error
    "Complie Error : Next without For" occured

  6. #6
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Re: coloring entire row if specific cell have certain value

    PLEASE IGNORE THIS DUPLICATE POST

    Sorry cannot delet ...How to delet Duplicate Post? dont know so colored it Red

    Still the same Error
    "Complie Error : Next without For" occured
    Last edited by John Cruz; 07-23-2014 at 04:44 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: coloring entire row if specific cell have certain value

    Mate, I do not see any error when I run it on my PC. Did you see the attached example? (re-attached here - Book2.xlsm ). There are two macro's in it.

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Please ensure that Macro is enabled. Or else, attach your workbook.

  8. #8
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Re: coloring entire row if specific cell have certain value

    Hi friend,


    sorry i have raised the question wrongly...i wanted to do this through USERFORM ....No issue by you method its doing perfect.
    but as i thought this problem is not getting solved . lets think on other problem so i have cleaned the codes and uploaded the file with new issue in other post

    and to mention :- when the specific text like HOLD comes in row entire row of table i want text to be in white bold . and background in Red

    http://www.excelforum.com/excel-prog...ividually.html

    I have attached the excel file ....but your code you wont find as i have cleaned the codes


    *All the codes you find in this excel is copied from this forum form the people having similar issues ...i am not programmer thats the reason...just watching videos on youtube i have managed to do this Far
    Attached Files Attached Files
    Last edited by John Cruz; 07-24-2014 at 02:58 AM.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: coloring entire row if specific cell have certain value

    Hi,
    May I request you to please mark this thread as "Closed". I'll see if I can be of any help with your other request.

  10. #10
    Registered User
    Join Date
    06-28-2014
    Location
    Bombay
    MS-Off Ver
    2007
    Posts
    33

    Re: coloring entire row if specific cell have certain value

    Ok no problem I will close this request

    but how to close ...shall i mark this thread as SOLVED
    Last edited by John Cruz; 07-24-2014 at 06:18 AM.

  11. #11
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: coloring entire row if specific cell have certain value

    Yes. (My bad - I should have said mark this 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)

Similar Threads

  1. Replies: 2
    Last Post: 01-15-2013, 02:55 AM
  2. [SOLVED] Conditional Formatting - Coloring entire row
    By malnahar in forum Excel General
    Replies: 3
    Last Post: 11-29-2012, 03:32 PM
  3. How to highlight the ENTIRE row subject to a specific cell?
    By sami770 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2012, 03:37 AM
  4. Auto fill coloring of a cell with a specific letter
    By bmcrae in forum Excel General
    Replies: 3
    Last Post: 11-04-2008, 12:48 PM
  5. [SOLVED] Exclude specific cell from entire column
    By Dn_ in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-30-2006, 04:25 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