Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Help pLease... Creating a Usage Log

I am trying to create a usage log, below is the code:

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

However, I don't know where the log is stored therefore am not sure if it is
working.
Would someone be able to help me?
Your guidance will be greatly appreciated.

Thank you,

J.B.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Help pLease... Creating a Usage Log

The usage.log file is stored in the folder from which you opened the workbook

I tested the code and it works.

The code creates the file on first open then appends username and date/time each
time the workbook is opened.

Find it in the folder and open with NotePad to check.


Gord Dibben MS Excel MVP

On Mon, 3 Dec 2007 17:00:02 -0800, Alpineman2
wrote:

I am trying to create a usage log, below is the code:

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

However, I don't know where the log is stored therefore am not sure if it is
working.
Would someone be able to help me?
Your guidance will be greatly appreciated.

Thank you,

J.B.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Help pLease... Creating a Usage Log

Gord Dibben,
Thank you, I feel stupid now, should have noticed the usage log right in
front of my face.

"Gord Dibben" wrote:

The usage.log file is stored in the folder from which you opened the workbook

I tested the code and it works.

The code creates the file on first open then appends username and date/time each
time the workbook is opened.

Find it in the folder and open with NotePad to check.


Gord Dibben MS Excel MVP

On Mon, 3 Dec 2007 17:00:02 -0800, Alpineman2
wrote:

I am trying to create a usage log, below is the code:

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

However, I don't know where the log is stored therefore am not sure if it is
working.
Would someone be able to help me?
Your guidance will be greatly appreciated.

Thank you,

J.B.



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
limited usage jinvictor Excel Programming 10 June 20th 06 02:05 PM
100% cpu usage bill Excel Discussion (Misc queries) 1 March 2nd 06 10:27 AM
Cursor Usage DJB Excel Discussion (Misc queries) 2 September 15th 05 06:59 PM
SQL - TOP 1 Usage ell[_2_] Excel Programming 6 August 26th 04 12:08 AM
Command Usage john petty Excel Programming 1 September 6th 03 04:52 PM


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