Word VBA >> How to detect the time MS-Word was launched

by technologymd » Fri, 16 Jul 2004 11:55:58 GMT

Hello All

I am trying to write a macro that will tell me how long have I been
working with MS-Word.

I know how to add the time to a text file via Open and Append, but I
can't seem to find any hookup for when word starts. I have
accomplished the time stamp for when I save the document, or for when
I close the document. But I need to know the time I started MS-Word 97
to 2003.

I tied to use the AutoOpen, but it did not work. It does run when I
open a new document, but not for the document that comes up when you
start Word.

I am thinking that the Normal.DOT template should have the AutoOpen,
but it still does not work.

Any suggestion on:

How to capture the time that MS-Word is 97-2003 was launched

Thanks a lot.

Wassim


Word VBA >> How to detect the time MS-Word was launched

by Jezebel » Fri, 16 Jul 2004 12:07:14 GMT


AutoExec is the macro name you want. This runs when the template containing
it is loaded. For normal.dot, this means when Word starts.











Similar Threads

1. VB App to detect time and launch - Visual Basic/VB

2. Why MS Word 2002 requires installation disk each time launch

I bought this product back in college.
I am tired and Ffrustrated when it always asks me to re-install the program.
When re-install, it doesn't stop.

What should I do?

3. Why does Office 2003 installer start every time I launch MS Office - Microsoft Office

4. office installer launches every time a microsoft product is launch

5. How to detect MS Word or MS Access calls MS Excel using VBA - Excel

6. Detecting the launch of Word from other applications

Is it possible to detect if word has been launched from another application 
such as DOORS?  I have asked the Telelogic helpdesk to no avail.  I just want 
to be able to switch off the launch of a form from AutoNew if Word has been 
initiated by another application.

7. Launching MS/Word from VBA

8. Subtract PM time from AM time

Hello

I need to subtract a pm time from an am time, e.g. 10:00 a.m. from 1:00 p.m. to get 3

I have two textboxes for the time values and next to each is a dropdownlist to click indicating a.m. or p.m

Any help will be greatly appreciated

Sandy