Last saved option?

Andy Moore

New Member
Joined
Mar 29, 2012
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can anyone advise how to set up a sheet that links in the last saved date and or time of a certain spreadsheet?

Regards,

Andy:)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Can you explain in more detail?
You want just to store some value?
 
Upvote 0
Hi,

Sorry to be brief. Its basically that I need to link into spreadsheet A the last saved time or date that several other spreadsheets were saved B, C, D etc.

Many thanks for reading:)
 
Upvote 0
What do you mean "save time of spreadsheet"? Does such thing exist?
 
Upvote 0
So sorry - what I need is the time or date that a certain spreadsheet was saved that can be somehow linked into another spreadsheet. So if I appear a bit vague!

Regards

Andy:)
 
Upvote 0
I am sorry, Andy, but there's no such thing as "save time of sheet". The only thing I can offer you is to track "Workbook_BeforeSave" event and check which sheet was active. Knowing the active sheet, you can write down time to your cell. Here's example:

Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

    With Sheets("A").Cells(.Rows.Count, "A").End(xlUp)
        .Value = ActiveSheet.Name
        .Offset(, 1) = Now
    End With

End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,838
Members
449,471
Latest member
lachbee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top