+ Reply to Thread
Results 1 to 3 of 3

Highlights several cell based on single cell value (on the same raw) , vba

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    San Bruno, USA
    MS-Off Ver
    Excel 2003
    Posts
    32

    Highlights several cell based on single cell value (on the same raw) , vba

    Is it possible to do thru vba:

    1. Check all column F:F for value 'xxx'
    2. If let say F17 = 'xxx' then highlight C17:F17 (several cell in this row).
    3. Continue till the end of values in F:F, could be multiple 'xxx' on this raw

    I tried to work/record this thru macros conditional formatting but failed,

    Thanks to all gurus.
    Best
    Dai
    Last edited by dainova; 03-27-2013 at 03:43 PM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Highlights several cell based on single cell value (on the same raw) , vba

    try:

    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Highlights several cell based on single cell value (on the same raw) , vba

    You could do this with regular Conditional Formatting, you dont need VBA.

    1. highlight the range you want to apply the conditional formatting to (C1:F1000) I would not suggest you use entire columns for the range, it becomes very resource-intensive
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =$F1="xxx"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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