Thread: count time
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Mark Heyhoe Mark Heyhoe is offline
external usenet poster
 
Posts: 9
Default count time

Why not just stick the open file and write time in workbooks auto_open sub and the close time in the auto_close sub?

Mark

"Mark" wrote:

I looking for VBA code produce: write to file.txt working
life workbook by user.

I have only code with open file time:

Open ThisWorkbook.Path & "\file.txt" For Append As #1
Print #1, Now, Application.UserName,
Application.ActiveWorkbook.Name
Close #1

How and where i write variable and remain code to show
total time usage by one user?

Regards
Mark