Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Tracking workbook user usage

Hi,

I have a workbook that sits on the network and can be opened,
read-only, by sales staff.

I need to be able to see when the workbook is opened (read-only) by
each user (each has a different IP).

I dont want to use 'Track Changes' as I dont want to share the
workbook.

Does anybody have some VB that could either update a list or send an
email containing the IP address, date and time, on the open event of
the workbook. I suppose the 'Read-only' asspect is the biggest problem
with this.

Darren

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Tracking workbook user usage

The following will create a log file listing the date/time opened and the
Windows user name when the workbook is opened:
Private Sub Workbook_Open()

Open "G:\LogFolder\XLLog.txt" For Append As #1
Print #1, Format(Now, "mm/dd/yy hh:nn") & " " & Environ("User")
Close #1

End Sub

The log file, as you can see, is a text file; you can set its path in the
code as above but it would have to be in a folder accessible by all your
users.
--
- K Dales


"Darren" wrote:

Hi,

I have a workbook that sits on the network and can be opened,
read-only, by sales staff.

I need to be able to see when the workbook is opened (read-only) by
each user (each has a different IP).

I dont want to use 'Track Changes' as I dont want to share the
workbook.

Does anybody have some VB that could either update a list or send an
email containing the IP address, date and time, on the open event of
the workbook. I suppose the 'Read-only' asspect is the biggest problem
with this.

Darren


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Tracking workbook user usage

absolutely brilliant, thanks very much!

Darren

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 file usage tst Excel Discussion (Misc queries) 5 October 13th 08 02:07 PM
Tracking Workbook Usage Sophia Excel Programming 0 June 10th 04 12:17 AM
Tracking workbook usage Sophia[_3_] Excel Programming 3 June 5th 04 04:24 AM
Tracking Workbook usage Sophia[_3_] Excel Programming 0 June 5th 04 12:21 AM
Tracking Document Usage Diana[_6_] Excel Programming 1 January 12th 04 11:31 PM


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