+ Reply to Thread
Results 1 to 4 of 4

Conditionally Format Dynamic Range

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Conditionally Format Dynamic Range

    I'm looking for a way to apply conditional formatting to a dynamic range, as the number of rows will vary each week.
    If it helps, Col A could be used as a reference, as it will always have a number in it, but wherever it stops is where I would need the conditionally formatted range to cut-off as well.

    The actual range that would need formatting applied to it is Columns F-I where:
    For any values < 1.00 (it should also cover blanks, which should be treated as zeros), red highlighting is applied &
    For any text that reads "Flagged" or "Not Reported", they would need to become bold

    Additionally, I would like to start the formatting on Row 2 of the sheet in question, named "1010version"


    I would appreciate any help offered!
    Attached Files Attached Files
    Last edited by hamidxa; 07-18-2014 at 12:16 PM.

  2. #2
    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,039

    Re: Conditionally Format Dynamic Range

    Not sure if you intended to upload a workbook here, but it would help if you did
    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

  3. #3
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Conditionally Format Dynamic Range

    Sample workbook added to original post.

  4. #4
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Conditionally Format Dynamic Range

    Solved it.
    I ended up using two subs, and thinking there should be a way to do it with just one, but nevertheless, here's my code.


    This does the highlighting:
    Please Login or Register  to view this content.
    This bolds it (I extended the range to Col K)
    Please Login or Register  to view this content.

+ 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. Need help looping through multiple sheets to conditionally format the same range/sheet
    By xcelnovice101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2014, 10:54 AM
  2. Best Way to Conditionally Format Range (Multiple Columns and Rows)?
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-14-2013, 04:53 PM
  3. Replies: 4
    Last Post: 06-04-2012, 12:08 PM
  4. [SOLVED] Vba code to conditionally format a specific range
    By kelwood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2012, 10:14 AM
  5. Define dynamic range for format
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2011, 07:13 PM

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