#1   Report Post  
Posted to microsoft.public.excel.misc
flow23
 
Posts: n/a
Default date modified

I have two sheets Data and Summary
The "data" sheets macro extracts data from external file and paste into
"Data" sheet

Everytime the m acro is run to get latest data...

The macro delete all contents of the "data" and then paste new data into the
"data" sheet.

Is there a way.. I can put a date on the "summary" sheet, when was the time
the macro was run ( or in other words.. the data updated)




  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default date modified

This little macro records the date in the selected cell and formats it:

Sub Macro2()
Dim d As Date
Dim s As String
d = Now()
s = d
Selection.FormulaR1C1 = s
Selection.NumberFormat = "mm/dd/yy;@"
End Sub

If you always want the date to go in a certain cell, then select it in the
macro.
--
Gary''s Student


"flow23" wrote:

I have two sheets Data and Summary
The "data" sheets macro extracts data from external file and paste into
"Data" sheet

Everytime the m acro is run to get latest data...

The macro delete all contents of the "data" and then paste new data into the
"data" sheet.

Is there a way.. I can put a date on the "summary" sheet, when was the time
the macro was run ( or in other words.. the data updated)




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
output date modified if data is entered for multiple rows [email protected] Excel Discussion (Misc queries) 4 October 13th 05 08:09 PM
How do I add the file last modified date into an Excel header? John_Ostar Excel Discussion (Misc queries) 3 October 10th 05 10:20 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How do I enter the date last modified in the footer of an Excel d. Last modified date in footer Excel Discussion (Misc queries) 1 February 6th 05 11:12 PM
Modified Date DME New Users to Excel 11 December 14th 04 07:15 PM


All times are GMT +1. The time now is 04:30 PM.

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"