Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Locking =Today() on Save as on Template

Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Locking =Today() on Save as on Template

Hi,

Use

Ctrl+;

which gives a non-volatile date.

Mike

"Ross Thomson" wrote:

Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Locking =Today() on Save as on Template

Control semi-colon
--
David Biddulph

"Ross Thomson" wrote in message
...
Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Locking =Today() on Save as on Template

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
If ThisWorkbook.Path = "" Then
Sheets("Sheet1").Range("A1").Value = "Last Saved On " & _
Format(Date, "mm/dd/yyy")
End Sub

Placed in Thisworkbook module of the Template which I assume is a true *.XLT
template


Gord Dibben MS Excel MVP


On Thu, 9 Oct 2008 21:57:36 +1300, "Ross Thomson"
wrote:

Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Locking =Today() on Save as on Template

Forgot the End If

End If
End Sub


Gord

On Thu, 09 Oct 2008 14:36:21 -0700, Gord Dibben <gorddibbATshawDOTca wrote:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
If ThisWorkbook.Path = "" Then
Sheets("Sheet1").Range("A1").Value = "Last Saved On " & _
Format(Date, "mm/dd/yyy")
End Sub

Placed in Thisworkbook module of the Template which I assume is a true *.XLT
template


Gord Dibben MS Excel MVP


On Thu, 9 Oct 2008 21:57:36 +1300, "Ross Thomson"
wrote:

Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Locking =Today() on Save as on Template

Thanks Folks, - works a treat
Ya saved my bacon



"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Forgot the End If

End If
End Sub


Gord

On Thu, 09 Oct 2008 14:36:21 -0700, Gord Dibben <gorddibbATshawDOTca
wrote:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
If ThisWorkbook.Path = "" Then
Sheets("Sheet1").Range("A1").Value = "Last Saved On " & _
Format(Date, "mm/dd/yyy")
End Sub

Placed in Thisworkbook module of the Template which I assume is a true
*.XLT
template


Gord Dibben MS Excel MVP


On Thu, 9 Oct 2008 21:57:36 +1300, "Ross Thomson"
wrote:

Hi Folks,
I have a Excel Template with a =today() cell to show todays date when
opened - but would like have the date shown when the file was saved, not
todays date?




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
When you hit Save on a template, how can you save as worksheet? cwgirl1982 Excel Worksheet Functions 1 September 4th 08 11:18 PM
Locking documents in Excel after a template has been created. Borneval Excel Worksheet Functions 2 July 10th 08 01:44 AM
locking template? grylion Excel Discussion (Misc queries) 2 June 4th 06 12:44 PM
Using today formula for a template Mike Busch Excel Discussion (Misc queries) 3 August 8th 05 01:44 PM
How and where to save template? mom42 Excel Discussion (Misc queries) 3 June 5th 05 02:05 PM


All times are GMT +1. The time now is 01:10 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"