Formula for Last Saved on outside of Header/Footer

G

Guest

I am wanting to have a cell reference that displays the Date the file was
last saved on. Or unless someone knows of another way for me to display on
my spreadsheet "Updated on .............". I don't want to use it in the
Header/Footer section though.

I am not real good with VBasic so a formula like =cell(filename",A1) would
be good.
 
R

Ron de Bruin

Hi Kempster

Try this event in the Thisworkbook module that run when you save your workbook
It will fill in the date in Sheets("Sheet1").Range("a1").

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, _
Cancel As Boolean)
'If you save the file the date will be placed in cell A1 of Sheet1
Sheets("Sheet1").Range("a1").Value = "Updated on " & Date
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top