+ Reply to Thread
Results 1 to 8 of 8

Need to highligh the column if thevalues are not present.

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Need to highligh the column if thevalues are not present.

    Hi,
    I need to write a macro to high light the column.

    My scenario is i have a excel with two tabs, project and allocation.In allocation tab i need to highlight the values of project(column) if those values are not present in project tab project column.
    if a project is defined in ‘Allocations’ but not in Left column of the ‘Projects ‘ tab then highlight that project in ‘allocations’ tab.

    I am newbie to macros so please help how to write the macros.Attached sample sheet.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to highligh the column if thevalues are not present.

    Hi and welcome to the forum.

    Why don't you just use a Conditional Formatting for this and you want to use VBA?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need to highligh the column if thevalues are not present.

    I need this functionality in macros because in my original sheet to add projects i need to insert rows and this functionality should be implemented on newly added rows(should be done without dragging the formula to all cells).

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to highligh the column if thevalues are not present.

    It is YOUR project and you know better..

    But just to know, my opinion is that you can do it, with CF, without dregging formula and you can add as many rows as you need(using(Named ranges).

  5. #5
    Registered User
    Join Date
    06-19-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need to highligh the column if thevalues are not present.

    This sheet will be updated by others too so thats the reason i was looking for macro rather than explaining the other guys.
    Any ways thanks for responding and can you explain in detail how to achieve this through CF.

    Thanks in advance

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to highligh the column if thevalues are not present.

    Take a look to the example.

    I use Named List and in CF rules, i use just COUNTIF.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-19-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need to highligh the column if thevalues are not present.

    Thank you!!!!!

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need to highligh the column if thevalues are not present.

    You are welcome!

    Thanks for the feed back and also for the reb*

+ 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