+ Reply to Thread
Results 1 to 5 of 5

vba code for condtional formatting

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    vba code for condtional formatting

    Hi All

    I am writing a Excfel Macro to highlight and blink the cell (i.e. the cell flashes) when a certian croteria is reached.

    I would really appreciate any help or a sample code to do this.

    I have a spreadhseet with the amount that customers spend and if a customer spends more than 1000 the name of the customer should be filled in yellow background and the name should also flash. If they spend between 500 and 1000 then name should be filled with red and flash.

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: vba code for condtional formatting

    You'll need to start messing with Application.OnTime in VBA for that, i think.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: vba code for condtional formatting

    Does this help?

    http://msdn.microsoft.com/en-us/libr...ffice.15).aspx

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=891

    http://www.ozgrid.com/forum/showthread.php?t=80432

  4. #4
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: vba code for condtional formatting

    thanks for this. I will give it a go, it does look to do what I need

  5. #5
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: vba code for condtional formatting

    I cant seem to be able to get this working, sorry about this but I am new to VBA.

    Below is my code which sends an email out if a customer has spent certain amount (>1000 or between 500 and 1000). What I need is if a customer has send more than 1000 then an email is sent out and the cell B2 (which has the name of the customer) to blink, and the same all the way through. I have also attached my spreadsheet with fake names for reference).

    Any urgent help is appreciate it.
    Please Login or Register  to view this content.
    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)

Similar Threads

  1. Condtional formatting
    By tinkerbelle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2013, 09:26 AM
  2. Condtional Formatting
    By univerco in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-11-2011, 05:43 PM
  3. Condtional Formatting
    By iamtehwalrus in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-19-2010, 11:25 PM
  4. condtional formatting
    By keith6292 in forum Excel General
    Replies: 2
    Last Post: 10-28-2009, 12:43 PM
  5. condtional formatting help
    By diesel20056 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2006, 11:16 AM

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