Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2014, 09:42 AM
Greengecko Greengecko is offline Non-printing button to convert a date field to text Windows 7 64bit Non-printing button to convert a date field to text Office 2010 64bit
Novice
Non-printing button to convert a date field to text
 
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
  #2  
Old 09-09-2014, 09:40 PM
macropod's Avatar
macropod macropod is offline Non-printing button to convert a date field to text Windows 7 64bit Non-printing button to convert a date field to text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-printing button to convert a date field to text 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft