+ Reply to Thread
Results 1 to 5 of 5

VBA Conditional Formatting

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    VBA Conditional Formatting

    Hello,

    I need help producing some VBA code for conditional formatting. I've attached a spreadsheet for an example. I would like to format the "Size" cells red when there is a number in the corresponding "Qty" column but no available size in the "Size" column. The example spreadsheet should help explain this better.

    Thanks!
    Michelle
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: VBA Conditional Formatting

    Hello, try this code.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: VBA Conditional Formatting

    Thank you. I think this will work. What would I need to change to start the Range in column K?

  4. #4
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: VBA Conditional Formatting

    here

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Oregon, USA
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: VBA Conditional Formatting

    Excellent! Getting closer. I found a few other issues I need to resolve.

    1. If a row of data is removed, I would like the red fill formatting removed as well. I have the code in the worksheet on SelectionChange.
    2. I would only like to highlight cells in the "Size" columns where there is a number in the "Qty" column but no size in the "Size" column. If the Size column has a size value but no quantity in the Qty column, that is okay. I've adjusted the example and posted again.

    Thank you for all your help!
    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