[COLOR=darkblue]Private[/COLOR] [COLOR=darkblue]Sub[/COLOR] Workbook_Open()
[COLOR=darkblue]Dim[/COLOR] fNum [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]Long[/COLOR]
fNum = FreeFile
[COLOR=darkblue]Open[/COLOR] "[COLOR=red]C:\myFile_Log.txt[/COLOR]" [COLOR=darkblue]For[/COLOR] [COLOR=darkblue]Append[/COLOR] [COLOR=darkblue]As[/COLOR] #fNum
[COLOR=darkblue]Print[/COLOR] #fNum, "Opened: " & Application.UserName _
& vbTab & Now
[COLOR=darkblue]Close[/COLOR] #fNum
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]