Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default I want to display the last file save date in an excel spreadsheet

Is it possible to display the last file save date in an excel spreadsheet
like one can in Word?

D2
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default I want to display the last file save date in an excel spreadsheet

Hi,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this in on
the right. Change the sheet and column to suit

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
lastrow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Cells(lastrow + 1, 1).Value = "Last saved " & Now
End Sub

Mike

Mike

"Export Waypoints from S&T ''06" wrote:

Is it possible to display the last file save date in an excel spreadsheet
like one can in Word?

D2

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default I want to display the last file save date in an excel spreadsheet

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
Worksheets("Sheet1").Range("A1").Value _
= "Last Saved on " & Format(Date, "mmmm dd, yyyy")
End Sub


Gord Dibben MS Excel MVP

On Mon, 22 Dec 2008 09:53:01 -0800, Export Waypoints from S&T ''06
wrote:

Is it possible to display the last file save date in an excel spreadsheet
like one can in Word?

D2


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default I want to display the last file save date in an excel spreadsheet

another way might be to use

Private Sub Workbook_BeforePrint(Cancel As Boolean)
lastrow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Cells(lastrow + 1, 1).Value = ActiveWorkbook.BuiltinDocumentProperties
(12)
End Sub



On 22 Gru, 20:27, Mike H wrote:
Hi,

Alt+F11 to open VB editor. Double click 'This Workbook' and paste this in on
the right. Change the sheet and column to suit

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
lastrow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
Cells(lastrow + 1, 1).Value = "Last saved " & Now
End Sub

Mike

Mike

"Export Waypoints from S&T ''06" wrote:



Is it possible to display the last file save date in an excel spreadsheet
like one can in Word?


D2- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


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
save excel 2007 spreadsheet as a .wk1 file? Fris Excel Worksheet Functions 1 March 31st 08 11:56 AM
Excel 2007 - Save as a 123 or Lotus spreadsheet file? Stan Excel Discussion (Misc queries) 2 February 20th 08 05:08 PM
Can I write an excel formula to display the file save date? Bob-123456789 Excel Worksheet Functions 1 January 26th 06 07:50 PM
How do I display the last saved date in an EXCEL spreadsheet? Andrea Excel Discussion (Misc queries) 1 March 10th 05 08:55 PM
save excel spreadsheet as a csv file thelma Excel Worksheet Functions 1 January 20th 05 04:33 PM


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