Hi guys,
I use the code below:-
Private Sub Workbook_Open() With Worksheets("Log")
EndRow = Sheets("Log").Range("A65536").End(xlUp).Row + 1
Sheets("Log").Range("F" & EndRow).Value = Environ("USERNAME")
Sheets("Log").Range("A" & EndRow).Value = Now()
End With
End Sub
This documents who has logged into the workbook. I want to use something similar when a document is printed. All I need is the date and username (as above). When command button1 (which prints a word doc) is pressed I want the info to go into column C for the user and the date in column D.
Any help would be appreciated.
Craig.
I use the code below:-
Private Sub Workbook_Open() With Worksheets("Log")
EndRow = Sheets("Log").Range("A65536").End(xlUp).Row + 1
Sheets("Log").Range("F" & EndRow).Value = Environ("USERNAME")
Sheets("Log").Range("A" & EndRow).Value = Now()
End With
End Sub
This documents who has logged into the workbook. I want to use something similar when a document is printed. All I need is the date and username (as above). When command button1 (which prints a word doc) is pressed I want the info to go into column C for the user and the date in column D.
Any help would be appreciated.
Craig.