Adapting Gary's code:
Private Sub Workbook_Open()
If Sheets("Sheet1").Range("A1").Value = "" Then
Sheets("Sheet1").Range("A1").Value = now()
End Sub
You are correct on your other post- if you are trying to save this as your
workbook name, you will probably need to eliminate any special characters
(I'd think the slashes in the date will also be problematic).
Consider the following option; although it isn't as easily readable (what
time is 1609 again?) this might work for you, and still allows you to easily
sort your directories. My PC defaults the hours parameter to military (24
hour) time, so I'd suggest testing it to make sure that it performs as
expected- so you don't have a 4pm file show up as 04xx instead of 16xx and
throw off the order
Private Sub Workbook_Open()
TimeText= Year(Now()) & Format(Month(Now), "00") & Format(Day(Now), "00") &
" " & Format(Hour(Now()), "00") & Format(Minute(Now()), "00")
If Sheets("Sheet1").Range("A1").Value = "" Then
Sheets("Sheet1").Range("A1").Value = TimeText
End Sub