Logging Excel usage : Print to File « File Path « VBA / Excel / Access / Word






Logging Excel usage

 
Private Sub Workbook_Open()
    Open Application.Path & "\text.txt" For Append As #1
    Print #1, "Started " & Now
    Close #1
End Sub

 








Related examples in the same category