Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Tracking Document Usage

I am wondering if there is anyway I can track the usage
of a certain excel spreadsheet. For instance: how many
times this spreadsheet was opened per month.

Thank you for you input on this.
Diana
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Tracking Document Usage

Diana,

One way......

In the Workbook_Open event handler:

Private Sub Workbook_Open()
Open ThisWorkbook.Path & "\my.log" For Append As #1
Print #1, Application.Username, Now, "Opened"
Close #1
End Sub

The above will create a textfile named "my.log" in the
same directory that the workbook is in (you can modify this
if you want to put it somewhere else).
If the file doesn't exist, it will create it.
Every time someone opens the workbook, it'll add an
entry to that log file with the Username, date & time and the
word "Opened"

You can use the same scenario to log other events if
you want.

To install the above code, Press Alt + F11
Double click on "ThisWorkbook" in the "Projects"
window and copy and paste the above code into the
panel on the right.

John


"Diana" wrote in message
...
I am wondering if there is anyway I can track the usage
of a certain excel spreadsheet. For instance: how many
times this spreadsheet was opened per month.

Thank you for you input on this.
Diana



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
Tracking linked file usage SwordAngel Excel Discussion (Misc queries) 1 March 2nd 09 11:39 AM
tracking file usage tst Excel Discussion (Misc queries) 5 October 13th 08 02:07 PM
Document Tracking Log - Help?! Kathy Charts and Charting in Excel 1 February 2nd 08 11:54 AM
Document Tracking Log??!! Help! Kathy Excel Discussion (Misc queries) 0 February 1st 08 06:49 PM
tracking cell phone usage [email protected] Excel Discussion (Misc queries) 1 January 27th 07 01:15 AM


All times are GMT +1. The time now is 08:35 AM.

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"