Last updated shown in XL2007

Peter6000

New Member
Joined
Sep 23, 2011
Messages
2
This is very simple, but I haven't found the answer.

I have some rather complicated reports showing the business performance in nice graphs and top-10 tables. All this is based on embedded SQL/ODBC, and a huge macro usere press in order to update. It works perfectly.

On the front page I want to show when it was last updated, i.e. when was the macro last run, AND the workbook saved as a result. Like
"Data was last updated dd/mm/yyyy at hh:mm"
I can easily put a line in the macro that saves the workbook as the last thing.

I can't use the header function in excel, as it is very meagre compared to word, which actually is rather strange.

How do I do that?.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try like this

Code:
Sheet1.Range("A1").Value = "Data was last updated " & Format(Date, "dd/mm/yyyy") & " at " & Format(Time, "hh:mm")
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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