Automatic file name and save date

Can anyone suggest a smart way to automatically insert a text box with file name and date when the document was saved.

Best regards Flemming

Parents
No Data
Reply
  • Like David I didn't quite understand the question, but try this

    Sub SaveFileAsCopy()
       Dim FNm$, dt$

       FNm = Application.ActiveWorkspace.Application.RecentFiles.Item(1).FullName
       dt = Replace(Replace(Replace(Format(Now, "yyyy-mm-dd hh:mm:ss"), ":", ""), "-", ""), " ", "_")
       FNm = Replace(FNm, ".cdr", "_" & dt & ".cdr")

       ActiveDocument.SaveAsCopy FNm
    End Sub

    But if you are interested in something special, write to me at tv.softlv@gmail.com
    Taras

Children