#1
|
|||
|
|||
Field Date: UCase()?
Code:
Dim sField As Field Set sField = ActiveDocument.Fields.Add(Selection.Range, wdFieldDate, "\@ ""yyyy/MM/dd ddd, HH:mm:ss""", True) |
#2
|
||||
|
||||
Simple:
Code:
Dim sField As Field Set sField = ActiveDocument.Fields.Add(Selection.Range, wdFieldDate, _ "\@ ""yyyy/MM/dd ddd, HH:mm:ss"" \* Upper", False)
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Quote:
But I wonder why after it runs and I edit the field, Word hangs (Not responding). |
#4
|
||||
|
||||
Probably something to do with your system - on mine the field updates instantaneously with no suggestion of hanging.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Quote:
But, if edit field, it hangs. |
#6
|
||||
|
||||
The Edit|Field dialogue is incapable of handling such customisations. If you want to edit a customised field, do it via Shift-F9.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Field to add 10 Days to Current Date | Erbwon | Word | 6 | 11-12-2012 06:17 PM |
Date/Time Field Autopopulation Question | Dendalee | Word | 3 | 10-26-2012 06:37 AM |
Please help me with creating due date field | Artemio | Word | 1 | 03-01-2012 08:10 PM |
Calculate date in word field | edwedw | Mail Merge | 3 | 11-30-2011 02:10 PM |
Formula to subtract one month from due date field in reminder field | ghumdinger | Outlook | 1 | 10-01-2011 12:09 AM |