View Single Post
 
Old 09-09-2014, 09:42 AM
Greengecko Greengecko is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2014
Posts: 7
Greengecko is on a distinguished road
Default 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.
Reply With Quote