Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Date sheet first used

Is there a way to place a date stamp into a sheet the first time it is "saved
as" such that it remains unchanged on subsequent saves?

Ideally the date stamp should be in a specified cell and locked for editing
by users other than the sheets author

Can anyone help?

Thanks,

Roger
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Date sheet first used

This is in the VBA help file. It looks like what
you are after, but I have never used it, so I
am not sure it sets a new date on the SaveAs
file name. You can test it for yourself.

Sub ShowFileInfo(filespec)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = "Created: " & f.DateCreated
MsgBox s
End Sub

filespec is the name of your file, of course.

"Roger on Excel" wrote:

Is there a way to place a date stamp into a sheet the first time it is "saved
as" such that it remains unchanged on subsequent saves?

Ideally the date stamp should be in a specified cell and locked for editing
by users other than the sheets author

Can anyone help?

Thanks,

Roger

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
building a reporting sheet which reports by date and shows values of another sheet Tom Ogilvy Excel Programming 0 October 11th 05 01:12 PM
How to record a sheet change showing row column sheet name and date? Simon Lloyd[_584_] Excel Programming 0 October 6th 04 12:57 PM
How to record a sheet change showing row column sheet name and date? Simon Lloyd[_583_] Excel Programming 0 October 6th 04 10:32 AM
How to record a sheet change showing row column sheet name and date? Simon Lloyd[_582_] Excel Programming 0 October 6th 04 10:17 AM
How to record a sheet change showing row column sheet name and date? Simon Lloyd[_580_] Excel Programming 1 October 6th 04 09:30 AM


All times are GMT +1. The time now is 02:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"