Date Field changed to Regular Text

S

Sharon

On our centralized forms the date field is used so the
user has the correct date. However, my boss does not
want that field kept that way because when he goes back
to the letter he wants to know the date it was actually
typed. So, I created the below macro to replace the date
field with regular text:

Application.Browser.Target = wdBrowseField
Application.Browser.Next
Selection.Extend
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.Cut
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.PasteAndFormat (wdPasteDefault)


The problem is that it does not change the date in the
header. I thought if I added the "View, Header" plus the
above macro, it would work. Unfortunately, it is not
working. Any help would be appreciated.

Thanks.
 
C

Charles Kenyon

No need for macros or vba.

Change the Date field to a CreateDate field in the template you use for your
forms. When a new form is created based on the template, the date will be
updated to that date. When it is saved, it will keep that date.

See <URL: http://addbalance.com/word/datefields1.htm> for information on the
different kinds of datefields and how to format them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top