#1
|
|||
|
|||
File Name in document formatted as date
When i have a file name example "20190526" and i want put it automatically in the word file, and i want the formatting "2019/05/28". how i can do this?
Last edited by Charles Kenyon; 05-26-2019 at 07:21 PM. Reason: Mark as solved |
#2
|
||||
|
||||
The '/' character is illegal for a filename. Assuming, though, that your filename is always 8 digits, you could insert a FILENAME field into the document, with a numeric switch coded as:
{FILENAME \# "0000'/'00'/'00" }
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy and Paste from File to File but File Names always change | aaronbauer1980 | Excel Programming | 1 | 04-15-2016 05:53 PM |
Macro to highlight repeated words in word file and extract into excel file | aabri | Word VBA | 1 | 06-14-2015 07:20 AM |
Title bar in word and ecxel 2010 is not picking up greek file name of 2007 file | danielle | Word | 4 | 12-03-2014 07:47 AM |
excel cannot open the file .xlsx because the file format or file extension is not val | teddysika | Excel | 1 | 11-22-2012 06:06 AM |
error: You are attempting to save a file format that is blocked by file block setting | zatlas1 | Office | 8 | 04-28-2012 02:37 PM |