Will somebody help...

MarkFromTokyo

New Member
Joined
Sep 26, 2002
Messages
2
with this long-standing issue of mine:

How can I autosave the last save date to a certain cell in a worksheet every time I save that file?

I would appreciate any tip. Thanks.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Could try looking at "on action save" - and then take that date and paste it to a predetermined cell.
 
Upvote 0
On 2002-09-27 03:12, MarkFromTokyo wrote:
with this long-standing issue of mine:

How can I autosave the last save date to a certain cell in a worksheet every time I save that file?

I would appreciate any tip. Thanks.

Hi,

welcome to the board.

Could use track changes,

or


open the VBE, Alt & F11
Locate - ThisWorkbook in the explorer on the right.
Double Click it.
In the main window change (general) to 'Workbook',
in the right hand drop down select BeforeSave,

and type in:

Sheets("Sheet1").Range("a1") = Date

between the two lines,

you should have:

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

Sheets("Sheet1").Range("a1") = Date

End Sub

Hope this helps,

Also you could go a little further and put:

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

Sheets("Sheet1").Range("a1") = Date & " " & Time

End Sub

_________________
Share the wealth!!
Ian Mac
This message was edited by Ian Mac on 2002-09-27 03:23
 
Upvote 0
Try this hope it helps

Sub auto_close()
Range("A1").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("A1").Select
Selection.Copy
Range("A1").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
ActiveWorkbook.Save
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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