+ Reply to Thread
Results 1 to 1 of 1

Excel VBA code to automatically change colour shape based on time

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    London, UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Excel VBA code to automatically change colour shape based on time

    Hi,

    I am total newbie to excel vba and I am working on a project in which in which I have change the shape colour based on the time for example if it is midnight the shape color should be yellow and if it is 6 O'Clock in the morning the shape colour should be green etc.

    The number of shape that I have to work with are about 14 and I have been trying my level best to figure out how to put the time interval in the excel and vba to so that it should work but to not avail.

    I attached a worksheet with the shapes

    The information on the second sheet ("picture") is currently maniplating the colour of the shapes but I want to merge the time into the if loop so that time can control the colour of the shapes while other will only display what is the value of the shape.


    If anyone can help me with this i would appreciate it a lot.

    Thank you,
    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. [SOLVED] Change Shape Fill colour based on cells values.
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-26-2020, 09:21 AM
  2. Automatically bringing a Shape into a Cell Using Shape Code
    By dineshtendulkar in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-16-2016, 02:25 PM
  3. Need to change the colour of a shape according to its value
    By hawkinsr86 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2012, 02:42 AM
  4. How to change a 'shape' foreground colour based on a cell contents
    By Farmboyuk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-13-2012, 10:55 AM
  5. Replies: 1
    Last Post: 05-21-2010, 12:40 PM

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