Log in

View Full Version : [SOLVED:] Touch/convert/modify Creationdate



toddel
12-09-2019, 12:23 AM
Hi...

i have a problem...

we have 12k RTF-Files who want to be converted to DOCX... (12k Files RTF=16GB, DOCX = 650MB). In the Files is a Autodate Field...

My Questions:

1. This Field needs to be changed to Creation Date - this is no problem... But how can i change the format of this?


Set rngTemp = ActiveDocument.Fields(1).CoderngTemp.Text = " CREATEDATE "
ActiveDocument.Fields(1).Update

2. Is it possible and how to use creation Date from the RTF and save it to the new DOCX?

Is there anyone who had this problem already and can help me with this?

Thanks in advance

toddel

macropod
12-09-2019, 01:09 AM
For example:

With ActiveDocument.Fields(1)
.Code.Text = "CREATEDATE \@ " & Chr(34) & "dddd, d MMMM YYYY" & Chr(34)
.Update
'.Unlink
End With
If you want to 'lock in' this date, you need to run the macro before doing the conversion and activate the commented-out '.Unlink line. Otherwise, the SaveAs you'll need to do will reset the
creation date.