+ Reply to Thread
Results 1 to 5 of 5

macro for creating colored blinking colors in rows

  1. #1
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    macro for creating colored blinking colors in rows

    This is a sheet that I use to track cabins and rv’s that I rent. People call, make reservations, and it’s all tracked on this SHRUNK DOWN SHEET. This sheet is quite a large sheet. Has been made smaller so I can upload it here.

    Basically what I’m looking for, is a macro/code to do the following.

    On sheet named “cabin reservation”. Under the “D” column, is codes named “In, out, NI, or canceled” these words trigger some conditional formatting colors.
    In the “D” column I would like for the VBA to Look to see if it says “in” and if it does, look at column “K” that corresponds to that customers check out date. If the check out date is today, the code will look at the computer clock to see if it is past 12 noon. And if it is past 12 noon, the code will make the entire row with check out date past noon flash multiple colors. This will continue to flash until the word “in” is changed to anything else.
    This is to track if our customers forget to turn in the keys to the office. The office can see who is in and out.

    Thank you in advance.


    Jason
    you can download a copy of the sheet at my dropbox here >>> https://www.dropbox.com/s/tesa1t9358...lors.xlsx?dl=0

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: macro for creating colored blinking colors in rows

    I thought I had a solution for you but it is very slow.

    This may be because you have so many conditional formats running.

    I created three conditional formats each with a different fill color :-

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This Macro:-

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: macro for creating colored blinking colors in rows

    Thank you very much for your time and effort. I appreciate it... i will take a look and try it out. Ill repost if it works for me.
    Jason




    Quote Originally Posted by mehmetcik View Post
    I thought I had a solution for you but it is very slow.

    This may be because you have so many conditional formats running.

    I created three conditional formats each with a different fill color :-

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This Macro:-

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: macro for creating colored blinking colors in rows

    Hi there,

    See if the attached version of your workbook does what you need.

    It uses an extra helper column (C), a worksheet-level defined name "bHighlightText", and some code which toggles the value of "bHighlightText" between True and False at one-second intervals whenever the Cabin Reservation worksheet is active.

    The values in the helper column will toggle between True and False whenever:

    the value in Column E is "in", and
    the value in Column L is today's date, and
    the time displayed by the system clock is later than 12 noon

    When the value in the helper column is True, conditional formatting highlights all of the data cells in that row, and this highlighting is removed whenever the value in the helper column is False.


    The code used is as follows:


    ThisWorkbook VBA CodeModule

    Please Login or Register  to view this content.

    Cabin Reservation Worksheet VBA CodeModule

    Please Login or Register  to view this content.

    Standard VBA CodeModule

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,645

    Re: macro for creating colored blinking colors in rows

    Hi again,

    The Workbook_BeforeClose routine needs to be added to the ThisWorkbook VBA CodeModule as shown below:

    Please Login or Register  to view this content.

    Regards,

    Greg M
    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. Auto Fill Calendar Colors based on colored listing
    By Merlin54k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2016, 04:29 PM
  2. [SOLVED] Macro to extract Rows Colored with Yellow Fill and create a new sheet as per current month
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2016, 04:54 AM
  3. Replies: 4
    Last Post: 01-19-2016, 10:24 PM
  4. Need help writing Macro for shading rows multiple colors
    By Vortex69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-30-2014, 12:25 PM
  5. Need help: Macro that colors rows based on specific text
    By Dummy2014 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2014, 09:01 AM
  6. Trying to edit colored text using VBA without losing my different colors upon edit
    By pglufkin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2012, 02:50 PM
  7. Macro to discard rows with a specific non-colored cell
    By patounet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2011, 12:46 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