View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Red[_3_] Red[_3_] is offline
external usenet poster
 
Posts: 2
Default Changing the Path In a Usage Log

The below is a macro I copied from one of the postings. The macro
works great, however the file "usage.log" saves in the same directory
as the workbook.
Can anyone tell me how I can save the "usage.log" to another directoy?


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