+ Reply to Thread
Results 1 to 6 of 6

VBA Conditional Format Cells based on multiple condition

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question VBA Conditional Format Cells based on multiple condition

    HI,
    I am trying to add conditional formatting to a sheet in the workbook through a macro. I have multiple conditions in columns H & K & P; if column 'F' has certain value then color of row changes based on range. Then I want that row to change if the value in column 'H' is either "Approved, Resubmit, Rejected", if 'Rejected' the row would change to different color (red).

    Below is the code I have so far, don't relly know how to add additional condition through Macro. I am able to do this within the sheet with multiple condition but, I am having issues with it when I combine data from other sheets. So, need to go Macro route.

    Please Login or Register  to view this content.

    Thanks.
    Attached Files Attached Files
    Last edited by nimesh29; 10-12-2017 at 12:07 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Conditional Format Cells based on multiple condition

    Hello nimesh29,

    Rather than having Forum Members creating a Workbook which they assume represents your exact requirement, to guess a possible solution, may I please suggest you attach a sample workbook.

    Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    03-20-2013
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VBA Conditional Format Cells based on multiple condition

    Thanks Winon.
    I have updated the my Original post to include sample file.

    Nimesh

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Conditional Format Cells based on multiple condition

    Hello nimesh29,

    Thank you for the feedback.

    I have prepared a sample Workbook for you with Conditional Formatting, without using VBA Code. Please see if you can work with it.

    Regards.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-20-2013
    Location
    chicago
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VBA Conditional Format Cells based on multiple condition

    Thank Winon, apologies for delayed response.

    I have the similar to your file working by setting it up through Conditional Formatting, Manage rules. Issue with this is, I am trying to apply these rules to a sheet where I am combining from other sheets and somehow when it Combines the information it pushes the rules(cells) down and Conditional formating doesn't get applied. And that is the only reason for going to VBA.
    Hope that was clear!

    Thanks.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA Conditional Format Cells based on multiple condition

    Hello nimesh29,

    Thank you for the feedback.

    Please could you copy the Forum with such a Workbook that, when it Combines the information it pushes the rules(cells) down and Conditional formating doesn't get applied.

    Thank you.

+ 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. [SOLVED] conditional format 1 cell based on multiple criteria of other cells
    By SKooLZ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-13-2015, 05:44 AM
  2. [SOLVED] Conditional Format - adding several data cells for one condition
    By JerBear in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-01-2013, 09:47 AM
  3. Conditional Format based on multiple cells
    By nelg001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2013, 08:57 PM
  4. Conditional Format to look in multiple cells based on another cell
    By proaction in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2011, 11:02 AM
  5. Conditional Format where condition is based on external cells
    By MNPhats in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-07-2011, 05:07 PM
  6. Format cells based on condition
    By keithnrhonda in forum Excel General
    Replies: 1
    Last Post: 09-05-2010, 07:31 AM
  7. Replies: 7
    Last Post: 06-12-2009, 03:56 AM

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