If Y4 > R4 and T4 = "B" then conditional format to blue font with blue fill and loop through the rest of the rows until the last row...
How??
If Y4 > R4 and T4 = "B" then conditional format to blue font with blue fill and loop through the rest of the rows until the last row...
How??
Does it have to be VBA? the built-in CF will do this for you too.
1. highlight the range you want to apply the conditional formatting to
2. on the home tab, styles, select CF
3. select new rule, select use formula
4. enter =and($Y4>$R4,$T4="B") format fill as needed
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
If you do want to use VBA, you can always nest your if statements:
Something like that should do it for you. Best of luck!Please Login or Register to view this content.
Last edited by FDibbins; 08-25-2015 at 10:52 AM.
Aule, Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(I have added them for you - this time)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks