M
ManForFun
Hi,
I need help to trap word events in a macro. I need to get the list of
files opened/closed/saved etc on certain machines of our network. I
created a .dot file and wrote the 'FileOpen', 'FileNew','FileSave' sub
programs to override the default word events and added my code to log
the events. This way I could log the files that opened using File-
performed any another word event. Please help by giving the list of
events and how to trap them.
My code in FileOpen:
Sub FileOpen()
' FileOpen Macro
' Opens an existing document or template
'
Dialogs(wdDialogFileOpen).Show
Call CreateFile("FileOpen ## " & Time)
End Sub
CreateFile is a procedure that writes the data in to a log file.
Thanks much in anticipation.
I need help to trap word events in a macro. I need to get the list of
files opened/closed/saved etc on certain machines of our network. I
created a .dot file and wrote the 'FileOpen', 'FileNew','FileSave' sub
programs to override the default word events and added my code to log
the events. This way I could log the files that opened using File-
that is opened (even it is by dbl clicking in windows explorer) orOpen. But I wanted other events also so that I could log any file
performed any another word event. Please help by giving the list of
events and how to trap them.
My code in FileOpen:
Sub FileOpen()
' FileOpen Macro
' Opens an existing document or template
'
Dialogs(wdDialogFileOpen).Show
Call CreateFile("FileOpen ## " & Time)
End Sub
CreateFile is a procedure that writes the data in to a log file.
Thanks much in anticipation.