+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Highlighting Specific Collumns Macro

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Highlighting Specific Collumns Macro

    I am trying to use a macro that will highlight columns E and I of the rows that collumn L equals "XXXXXXX." How can I designate the columns to tie into the row?

    Please Login or Register  to view this content.
    Last edited by Paul; 06-04-2012 at 06:09 PM. Reason: Added CODE tags for new user. Please do so yourself in the future.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Highlighting Specific Collumns Macro

    Please Login or Register  to view this content.
    Let me know if this works for you

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Highlighting Specific Collumns Macro

    I think using conditional formatting in this case will be a lot easier than VBA.

    I would create conditional formatting using row relative cell reference for columns E and I and then copy it down.

    for example for E5: if $L5 = "XXXXXX" then apply conditional format (note missing "$" sign before 5)
    Regards,
    Vandan

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Highlighting Specific Collumns Macro

    Your post does not comply with Rule 3 of our Forum RULES. 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 # at the top of your post window. For more information about these and other tags, found here
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Highlighting Specific Collumns Macro

    Yes that worked. Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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