Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Colour Cells depending on time


Hi everyone,

I would like some code to automate the process of colouring th
interior of cells depending on the time entered.

I have attached a small sample so you can get a better understanding a
it is difficult to explain.

Basically here is what is required.

The time matrix is on the sheet from columns J:BF (in half hou
increments)

The time entered to start (column E), until the scheduled completio
(column F) needs to be coloured blue on the matrix.

The time from scheduled completion (column F) until max hours (colum
G) needs to be coloured yellow on the matrix.

The time entered as end of shift (column H) needs to be highlighted a
red with a "u" (diamond shape in wingdings).

Some times the tasks wrap around days (ie goes past midnight into th
next day) and this may cause extra difficulty in the code, so if nee
be I can try to alter the matrix somehow to save on this extra coding
(not sure how I would be able to achieve this and still have it in th
same format though).

There are also some blank cells in the columns (E,F,G,H). ie. betwee
different days etc.

The code would need to fire everytime a time was changed in th
columns, which in turn would mean it would first have to clear all th
matrix to clear out the old colours.


Hoping someone is able to assist

Thanks in advance
Koal

+-------------------------------------------------------------------
|Filename: tasks.zip
|Download: http://www.excelforum.com/attachment.php?postid=2696
+-------------------------------------------------------------------

--
koal
-----------------------------------------------------------------------
koala's Profile: http://www.excelforum.com/member.php...fo&userid=1295
View this thread: http://www.excelforum.com/showthread.php?threadid=26671

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to automatically colour cells depending on text? mj_bowen Excel Discussion (Misc queries) 0 January 2nd 10 07:44 PM
Change colour of cells depending on entry in one cell harwookf Excel Worksheet Functions 9 November 3rd 07 12:38 AM
Print depending on tab colour Saintsman Excel Discussion (Misc queries) 3 July 16th 07 01:28 PM
changing the colour of cells depending on the content. johnny.exe Excel Discussion (Misc queries) 3 January 26th 06 09:41 AM
Changing cell colour depending on another cells value... Web master Excel Discussion (Misc queries) 3 January 10th 06 12:30 PM


All times are GMT +1. The time now is 03:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"