Hi, I currently have a workbook that when opened updates a Notepad with the users name, date & time opened. using the below code...
The log file is not vey user friendly and was hoping to save an excel workbook rather than a notepad in the following format;
Column A Username
Column B Date opened
Column C Time opened
Column D Date Closed
Column E Time Closed
Any help would be appreciated.
Code:
Private Sub Workbook_Open()
Sheets("Select Handler").Select
Open "myfilelcation.log" For Append As [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL]
Print [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL] , Application.UserName, Now
Close [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL]
End Sub
The log file is not vey user friendly and was hoping to save an excel workbook rather than a notepad in the following format;
Column A Username
Column B Date opened
Column C Time opened
Column D Date Closed
Column E Time Closed
Any help would be appreciated.