+ Reply to Thread
Results 1 to 3 of 3

Adding Conditional Formatting via VB

Hybrid View

  1. #1
    Registered User
    Join Date
    11-09-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    6

    Cool Adding Conditional Formatting via VB

    I have a huge spreadsheet that I need to add conditional formatting, Right now I have it via the conditional formatting drop down and it makes the spreadsheet freeze and run slow,
    I have three sets of colums that repeat Column 1, 2, 3, In the second column I have forecasted dates, below are the conditions that I'm trying to add

    If column 2 is empty no formatting

    Condition one: If there is a date in column 3 = no formating in column 2 end of formatting

    Condition two: if column 3 is blank, and the the date in column 2 is less than today's date formatting = column 2 = red fill end of formatting

    Condition three: if column 3 is blank and column 2 = today through today + 7 days formatting = column 2 = Yellow fill

    Condition four: if column 3 is blank and column 2 = today +8 through today + 14 days formatting = column 2 = Yellow fill

    Column 1 = Column "O'
    Column 2 = Column "P"
    Column 3 = Column "Q"

    and the columns repeat until no more data.


    Hope this makes sense.
    Snickers

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Adding Conditional Formatting via VB

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Registered User
    Join Date
    11-09-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Re: Adding Conditional Formatting via VB

    I have included a sample worksheet and added labels at the top indicating:
    Column 1 = Planned
    Colulmn 2 = Forecasted
    Column 3 = Actualized

    I have a huge spreadsheet that I need to add conditional formatting, Right now I have it via the conditional formatting drop down and it makes the spreadsheet freeze and run slow,
    I have three sets of colums that repeat Column 1, 2, 3, In the second column I have forecasted dates, below are the conditions that I'm trying to add

    If column 2 is empty no formatting: Stop

    Condition one: If there is a date in column 3 = no formating in column 2 end of formatting

    Condition two: if column 3 is blank, and the the date in column 2 is less than today's date formatting = column 2 = red fill end of formatting

    Condition three: if column 3 is blank and column 2 = today through today + 7 days formatting = column 2 = Yellow fill

    Condition four: if column 3 is blank and column 2 = today +8 through today + 14 days formatting = column 2 = Yellow fill

    Column 1 = Column "O'
    Column 2 = Column "P"
    Column 3 = Column "Q"

    One condition that I didn't add was in column 1 Planned if the date is less than today and column 3 is blank, comlumn 1 should be red.


    and the columns repeat until no more data.


    Hope this makes sense.
    Snickers
    Attached Files Attached Files

+ 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