PC Review


Reply
Thread Tools Rate Thread

Date sheet first used

 
 
Roger on Excel
Guest
Posts: n/a
 
      5th Aug 2008
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 With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      5th Aug 2008
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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make a sheet display data from another sheet based on date criteria? CW Microsoft Excel Discussion 1 12th May 2007 04:19 PM
building a reporting sheet which reports by date and shows values of another sheet alymcmorland Microsoft Excel Programming 1 11th Oct 2005 01:12 PM
How to record a sheet change showing row column sheet name and date? Simon Lloyd Microsoft Excel Programming 1 6th Oct 2004 09:30 AM
How to record a sheet change showing row column sheet name and date? Simon Lloyd Microsoft Excel Programming 0 5th Oct 2004 12:06 PM
How to record a sheet change showing row column sheet name and date? Simon Lloyd Microsoft Excel Programming 1 5th Oct 2004 11:22 AM


Features
 

Advertising
 

Newsgroups
 


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