Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Timing Multiple Events

I am using the worksheet as a database to record System Problems. One
hour after the "Resolved" column has been completed that row is to be
deleted. This will apply to all rows in the worksheet, therefore rows
displayed will only be those not yet resolved plus those resolved in
the last hour.

I need some ideas as to how I can maintain a timer for each row that
has been resolved.

All help appreciated, Dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Timing Multiple Events

You need to add a time to each row. I assume the rows are getting updated by
a query that is being refreshed automatically at a fixed time period. You
can use a refresh query event (see vba help AfterRefresh Event) to add the
time when the row was added. The query event can also remove expired lines.
The is also a BefroeRefresh Event that you can use to remove expired rows.

Also look at the VBA help for the ONTIME method. You can write a subroutine
which runs every 15 minutes (or as required) by uing the ONTIME method.
Inside the subroutine you can use ONTIME to have the subroutine called again
15 minutes later. You can also call you subroutine the first time from a
workbook open event.

"AussieDave" wrote:

I am using the worksheet as a database to record System Problems. One
hour after the "Resolved" column has been completed that row is to be
deleted. This will apply to all rows in the worksheet, therefore rows
displayed will only be those not yet resolved plus those resolved in
the last hour.

I need some ideas as to how I can maintain a timer for each row that
has been resolved.

All help appreciated, Dave

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Timing Multiple Events

Thanks a million Joel.
Actually the data is being entered manually, not via a query.
However, the ONTIME method works perfectly.
Thanks again, Dave

On Oct 22, 4:59*pm, Joel wrote:
You need to add a time to each row. *I assume the rows are getting updated by
a query that is being refreshed automatically at a fixed time period. *You
can use a refresh query event (see vba help AfterRefresh Event) to add the
time when the row was added. *The query event can also remove expired lines. *
The is also a BefroeRefresh Event that you can use to remove expired rows..

Also look at the VBA help for the ONTIME method. *You can write a subroutine
which runs every 15 minutes (or as required) by uing the ONTIME method. *
Inside the subroutine you can use ONTIME to have the subroutine called again
15 minutes later. *You can also call you subroutine the first time from a
workbook open event.



"AussieDave" wrote:
I am using the worksheet as a database to record System Problems. *One
hour after the "Resolved" column has been completed that row is to be
deleted. *This will apply to all rows in the worksheet, therefore rows
displayed will only be those not yet resolved plus those resolved in
the last hour.


I need some ideas as to how I can maintain a timer for each row that
has been resolved.


All help appreciated, Dave- Hide quoted text -


- Show quoted text -


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 multiple events Rachel Excel Programming 2 January 4th 08 10:15 PM
Multiple change events on same sheet JG Scott Excel Programming 4 January 19th 06 03:56 AM
Multiple Instancing of certain events ben Excel Programming 1 December 13th 05 07:26 PM
Workbook_Open - Multiple Events not all working Punsterr Excel Programming 2 October 6th 05 07:44 AM
display how long it takes to calc or timing certain events GH[_2_] Excel Programming 4 January 16th 05 10:07 PM


All times are GMT +1. The time now is 07:58 PM.

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

About Us

"It's about Microsoft Excel"