+ Reply to Thread
Results 1 to 2 of 2

Four Conditions for formatting VBA code

  1. #1
    Registered User
    Join Date
    03-26-2018
    Location
    Maryland
    MS-Off Ver
    2016
    Posts
    28

    Four Conditions for formatting VBA code

    Good Evening All,

    I've recorded a Macro with Conditional formatting with four different conditions, but once I stop recording and test the Macro, it doesn't do any Conditional Formatting.

    Here is what the end of my Macro looks like right now:

    Please Login or Register  to view this content.
    The conditions would be in order:
    1. =$K2="Departed On Time", format =$A$2:$K$1000, Fill blue.
    2. =$K2="Departed Late", format =$A$2:$K$1000, Fill yellow.
    3. =$K2="Delivered Late", format =$A$2:$K$1000, Fill red, Font white.
    4. =$K2="Delivered On Time", format =$A$2:$K$1000, Fill green.

    Do not stop if True.

    Can anyone help? Not sure what's going on here.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,224

    Re: Four Conditions for formatting VBA code

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. VBA code with 2 formatting conditions.
    By be3ee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2016, 05:10 PM
  2. Delete Conditional Formatting conditions but keep cell formatting
    By Devendra.dvm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2016, 04:07 AM
  3. Formatting According to Conditions
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 10-16-2015, 06:30 PM
  4. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  5. formatting wth 3 conditions
    By lookingforanwers in forum Excel General
    Replies: 8
    Last Post: 05-24-2012, 01:51 PM
  6. More than 3 conditions for formatting
    By nsv in forum Excel General
    Replies: 3
    Last Post: 03-08-2006, 10:23 AM
  7. Code for Conditional Formatting with Five Conditions
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2005, 04:05 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