Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Purge Data Based on Cell Color and Time

I am trying find a way to purge data after a few hours based on if certain
cells have a fill color of green. Excel may not be the best application to
use to accomplish this task.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Purge Data Based on Cell Color and Time

Hi Todd

EasyFilter beta 2.1 can filter on colors (not CF)
You can delete hide copy and ......
http://www.rondebruin.nl/easyfilter.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Todd" wrote in message ...
I am trying find a way to purge data after a few hours based on if certain
cells have a fill color of green. Excel may not be the best application to
use to accomplish this task.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Purge Data Based on Cell Color and Time

Do you mean you want to clear the cells, say 10 hours from now, if they are
say red?

If so, you are best to write a macro testing teh colour and clearing the
cells, and the use Ontime to launch that after your specified time interval.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
I am trying find a way to purge data after a few hours based on if certain
cells have a fill color of green. Excel may not be the best application

to
use to accomplish this task.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Purge Data Based on Cell Color and Time

Yes, once the cells turn green (signifies as ready) then, say 10 hours from
now the cells can be cleared (or deleted since we want data below to move to
the top of the list).

I'm not real familiar with writing macros. Do you know where I can find
some sample code to make this happen?

Thank you, Todd

"Bob Phillips" wrote:

Do you mean you want to clear the cells, say 10 hours from now, if they are
say red?

If so, you are best to write a macro testing teh colour and clearing the
cells, and the use Ontime to launch that after your specified time interval.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
I am trying find a way to purge data after a few hours based on if certain
cells have a fill color of green. Excel may not be the best application

to
use to accomplish this task.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Purge Data Based on Cell Color and Time

Here is a sample sub

Sub ClearColours()
Dim cell as Range

For Each cell In Thisworkbook.Worksheets("Sheet1").UsedRange
If cel.Interior.Colorindex = 10 Then
cell.delete xlShiftUp
End If
Next cell

End Sub

It would get fired like so

Ontime Now + TimeSerial(10,0,0),"ClearColour"

I have no idea what turns the cell green so I cannot advice as to how the
OnTime command would be executed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
Yes, once the cells turn green (signifies as ready) then, say 10 hours

from
now the cells can be cleared (or deleted since we want data below to move

to
the top of the list).

I'm not real familiar with writing macros. Do you know where I can find
some sample code to make this happen?

Thank you, Todd

"Bob Phillips" wrote:

Do you mean you want to clear the cells, say 10 hours from now, if they

are
say red?

If so, you are best to write a macro testing teh colour and clearing the
cells, and the use Ontime to launch that after your specified time

interval.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
I am trying find a way to purge data after a few hours based on if

certain
cells have a fill color of green. Excel may not be the best

application
to
use to accomplish this task.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Purge Data Based on Cell Color and Time

Bob, you got me started and really helped to get me in the right direction.
I believe I have it working the way I envisioned (with the exception of the
time part - I have not started on that yet).

Thanks again, Todd

"Bob Phillips" wrote:

Here is a sample sub

Sub ClearColours()
Dim cell as Range

For Each cell In Thisworkbook.Worksheets("Sheet1").UsedRange
If cel.Interior.Colorindex = 10 Then
cell.delete xlShiftUp
End If
Next cell

End Sub

It would get fired like so

Ontime Now + TimeSerial(10,0,0),"ClearColour"

I have no idea what turns the cell green so I cannot advice as to how the
OnTime command would be executed.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
Yes, once the cells turn green (signifies as ready) then, say 10 hours

from
now the cells can be cleared (or deleted since we want data below to move

to
the top of the list).

I'm not real familiar with writing macros. Do you know where I can find
some sample code to make this happen?

Thank you, Todd

"Bob Phillips" wrote:

Do you mean you want to clear the cells, say 10 hours from now, if they

are
say red?

If so, you are best to write a macro testing teh colour and clearing the
cells, and the use Ontime to launch that after your specified time

interval.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Todd" wrote in message
...
I am trying find a way to purge data after a few hours based on if

certain
cells have a fill color of green. Excel may not be the best

application
to
use to accomplish this task.






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
Changing Cell Background Color based on data from another cell Speedy Excel Discussion (Misc queries) 2 March 16th 09 04:10 PM
Designating color in one cell based on data entered in another cel Diogie Excel Worksheet Functions 3 September 8th 07 04:55 PM
How to sum data based on font or cell color? techiesol Excel Worksheet Functions 6 May 24th 06 04:11 PM
How do I change cell color based upon data range within the cell? Chris Sanders Excel Worksheet Functions 1 March 6th 06 08:59 PM
Purge data based on another Excel file??? Frank Excel Discussion (Misc queries) 0 September 6th 05 05:12 PM


All times are GMT +1. The time now is 12:23 PM.

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"