Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Events, Class, Time Editing

Win 2k and xp
Excel 2k

Requirement: Want to track how much time I spend on each
workbook for edit time. Word has a builtin_document
parameter but excel does not.

Has anyone got some code/workbook that they are using.

If I have to build myself, a few questions.

per Chip's site

Window Activate/Deactivate does not trigger when switching
applications. To catch this I guess I would need to trap
the application activate/deactivate events.

So, if I'm working on book 1 and flip to Outlook, I need
to record on my sheet a "time stop" value, or if I flip to
another book within excel I also need to record time stop.

if I switch from outlook to excel book 2, will need to
record the time start for book2, and when going from book
2 to book 1 I need to record stop for book 2 and start for
book 1.


I'm struggling with the logic that I would use to record
to a tracking sheet. On book open I note time, on book
close, I record the close time---total edit time is the
difference less any time not within this book, or not
within excel app.

How should I set up monitoring of time not in this book or
not in the application.

If I were to set this up as a class event and wrote to
personal.xls each book and the time spent, is that the
best way to go about this.

TIA

Dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Events, Class, Time Editing

I seriously doubt you can do what you want from within Excel. I don't
believe there is any Excel application event, that is exposed to us, that
fires when Excel itself is activated or deactivated. The event you're
thinking of fires when workbook windows within Excel are
activated/deactivated.

Doesn't Outlook have some kind of tracking feature? The Journal feature. I
turned whatever it was off back in 1997 so I don't exactly remember what it
did but it might be what you want.

--
Jim Rech
Excel MVP
"Dave" wrote in message
...
| Win 2k and xp
| Excel 2k
|
| Requirement: Want to track how much time I spend on each
| workbook for edit time. Word has a builtin_document
| parameter but excel does not.
|
| Has anyone got some code/workbook that they are using.
|
| If I have to build myself, a few questions.
|
| per Chip's site
|
| Window Activate/Deactivate does not trigger when switching
| applications. To catch this I guess I would need to trap
| the application activate/deactivate events.
|
| So, if I'm working on book 1 and flip to Outlook, I need
| to record on my sheet a "time stop" value, or if I flip to
| another book within excel I also need to record time stop.
|
| if I switch from outlook to excel book 2, will need to
| record the time start for book2, and when going from book
| 2 to book 1 I need to record stop for book 2 and start for
| book 1.
|
|
| I'm struggling with the logic that I would use to record
| to a tracking sheet. On book open I note time, on book
| close, I record the close time---total edit time is the
| difference less any time not within this book, or not
| within excel app.
|
| How should I set up monitoring of time not in this book or
| not in the application.
|
| If I were to set this up as a class event and wrote to
| personal.xls each book and the time spent, is that the
| best way to go about this.
|
| TIA
|
| Dave


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
# Events over time? Jon M Excel Discussion (Misc queries) 2 May 23rd 09 04:37 PM
Need formula for time between two events k1ngr Excel Worksheet Functions 5 February 27th 08 05:37 AM
Time Difference between two events Joseph[_34_] Excel Programming 6 September 7th 04 02:36 PM
Having Events Run at specified time. Rich Cooper Excel Programming 1 May 14th 04 03:49 PM
What events can be captured in a Class Module? Tom Ogilvy Excel Programming 4 September 8th 03 05:41 AM


All times are GMT +1. The time now is 04:03 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"