View Full Version : Solved: extracting file creation time
island17
10-27-2004, 02:53 PM
I wrote a macro that reformats a word doc. and would like to add to the bottom of the document the time it was created. Can this be done with VBA.
TonyJollans
10-27-2004, 03:27 PM
Hi Russ,
You need to Insert a Field of CreateDate. I just recorded this - it was easier thn coding it ..
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"CREATEDATE \@ ""dd/MM/yyyy HH:mm:ss""", PreserveFormatting:=True
island17
10-28-2004, 03:01 PM
Thanks Tony I will give it a try and let you know how I make out.
Russ
island17
11-11-2004, 12:29 PM
Tony
Thanks, I tried this out today and it works fine. I will have to play with it to make it work the way I would like, but it does the trick.
Thanks again
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.