#1
|
|||
|
|||
Non-printing button to convert a date field to text
Hello,
I have a memo-type document in which I want to provide the current date so the user doesn't have to type it. I have added a button that converts a date field into text. I marked the date with the bookmark, "Date" and made a button that uses the following code: Selection.GoTo What:=wdGoToBookmark, Name:="Date" Selection.Fields.Unlink The trouble is, I really would like the button to just disappear, or at least not print. Is that possible in Word VBA? Thanks. |
#2
|
||||
|
||||
If you use a template with a CREATEDATE field for the date, there'll probably be no need for either the button or the deletion. CREATEDATE fields only change when a document is re-saved via Save As.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add button or clickable text to form that opens up user's email client with To field populated | richiebabes | Word VBA | 3 | 09-04-2014 09:21 PM |
Excel pivot table with a DATE value field for some reason stops at a certain date | angie450 | Excel Programming | 2 | 08-19-2014 08:50 AM |
Adding text before a date merge field AND fomatting date as well | NikkiR | Mail Merge | 1 | 08-06-2014 07:18 PM |
Date field inserting merge date in blank field | Lesley | Mail Merge | 5 | 09-30-2013 01:49 AM |
Convert LISTNUM field codes to text | remedios43 | Word | 2 | 07-31-2011 09:21 AM |