Question about autotext / autodate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a template and macros that whenever I run, puts in a code like this {
DATE \@ "MMMM d, yyyy" } It seems to do that for a lot of things, not
necessarily just the date. If I copy and paste into this question, it put
the date in correctly. Did I set some sort of setting in Word 2007 to show
this instead of the date? Any help is appreciated.

B
 
It sounds like you simply need to press Alt+F9 to toggle the field display.
Alternatively, right-click {DATE \@ "MMMM d, yyyy"} and choose Toggle Field
Codes.
 
And while you are messing around with this it would probably be worth
changing the function to put in CREATEDATE instead of DATE or you will next
be complaining that the date updates to the current date every time you open
your document. Also if you are making dated documents it is probably worth
creating a template with the (Create)date field already placed, rather than
inserted by macro.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Right clicking and changing Toggle Field Codes worked, but only in that
instance, how would I permanently Toggle the codes off? Thanks again for
your help, I appreciate it.
 
Luckily these are court documents that the directly save as a PDF, so the
date that the signature is put in (which this macro does) will be saved
immediately to PDF.
 
Alt+F9 toggles all fields on/off in any given document. Once you've display
field results in that document, all fields should be display as results
rather than as codes.

If other document have been saved with field codes displayed, then that's
the way they open next time. So, if you have multiple documents that were
saved that way, it might take a while for you to open and resave them with
codes turned off.

Mind you... pressing Alt+F9 does not change a document. So, in order to save
the "change", you'd need to perform some kind of edit, such as inserting and
promptly deleting a space, etc.

--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
 
Has this changed in Word 2007? In my experience, if you close all documents
but one and then hide the field codes, this setting will be retained for any
documents (re)opened later.
 
That's what I thought, too. But, I'm getting very inconsistent results. It
was consistently behaving as I described the other day, but today, it's
behaving inconsistently--sometimes doing what I described, other times doing
what you describe. <sigh>

So, on the theory that there's a local oddity with my settings... to
re-answer Trefilov22's question, if you do what Stefan says--close all
documents except one, and toggle field codes to display results in that
document, this setting should be remembered in any document opened
subsequently.

By the same token, however, this means that if the last document you close
has field codes displayed as code, then the next document you open will also
have field codes displayed as fields.

--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
 

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

Back
Top