Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2004

Tip: Looking for answers? Try searching our database.

Header date format changes in Print Preview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CRR - 07 Jun 2004 17:28 GMT
Hi,
I have the document createdate in the header, and need
the format to be MM/DD/YY.  Looks great when the document
is opened, but Print Preview changes it to MM/DD/YY
HH:MM:SS.  How do I get my format to stick?
Graham Mayor - 07 Jun 2004 17:50 GMT
> Hi,
> I have the document createdate in the header, and need
> the format to be MM/DD/YY.  Looks great when the document
> is opened, but Print Preview changes it to MM/DD/YY
> HH:MM:SS.  How do I get my format to stick?

With the header open press ALT+F9 to display the field content.
Change the switch to
{CREATEDATE \@ "MM/DD/YY"}
Press F9 to update and if necessary ALT+F9 to toggle the display back again.
Close the header.

Signature

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

My web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>><

CRR - 07 Jun 2004 18:35 GMT
Hi,
Thanks, but I still have a problem.

I made the change as you suggested, and it looked great
in both normal and print preview.  The problem is that
when I save and close the document, then reopen it.  It
looks fine in normal view, but in print preview...doggone
it...the HH:MM:SS come back.  

Chris

>-----Original Message-----
>> Hi,
[quoted text clipped - 8 lines]
>Press F9 to update and if necessary ALT+F9 to toggle the display back again.
>Close the header.
Doug Robbins - Word MVP - 07 Jun 2004 22:42 GMT
When you display the field codes in the re-opened document, what formatting
switch do you see?

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

> Hi,
> Thanks, but I still have a problem.
[quoted text clipped - 22 lines]
> display back again.
> >Close the header.
CRR - 08 Jun 2004 15:00 GMT
Hi,
Well, right now the field codes are:
{CREATEDATE \@ "MM/DD/HH" \* MERGEFORMAT}

I have also tried CHARFORMAT, as was suggested in this
forum,  and with neither MERGEFORMAT nor CHARFORMAT.

I have run through a number of different date formats as
well.

This Word document is used in a larger Powerbuilder
application, which feeds data into the bookmark fields.  
The customer wants to see the date that a particular
document was created in the header, and CREATEDATE works
well for this.  The only problem is that, on a second
viewing of the an existing document, the hours and
minutes always appear in the date.

Thanks for your time!
Chris RR

>-----Original Message-----
>When you display the field codes in the re-opened document, what formatting
[quoted text clipped - 28 lines]
>
>.
Graham Mayor - 08 Jun 2004 16:03 GMT
{CREATEDATE \@ "MM/DD/HH" \* MERGEFORMAT}
What's that all about?
That will give you (at this moment) 06/08/14
What you should have is
{CREATEDATE \@ "MM/DD/YY"}
which will give you
06/08/04

Signature

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

My web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>><

> Hi,
> Well, right now the field codes are:
[quoted text clipped - 64 lines]
>>
>> .
- 08 Jun 2004 16:08 GMT
My error, it is MM/DD/YY.

>-----Original Message-----
>{CREATEDATE \@ "MM/DD/HH" \* MERGEFORMAT}
[quoted text clipped - 75 lines]
>
>.
Doug Robbins - Word MVP - 09 Jun 2004 00:10 GMT
You don't need either the \* MERGEFORMAT or \* CHARFORMAT

In the document that displays {CREATEDATE \@ "MM/DD/YY"} when you toggle off
the display of field codes and update the field using F9, what is displayed.

How PowerBuilder been in the act before this problem occurs.  Seems to me
that it's a bit incompatible with Word based on posts to these newsgroups.

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps

> My error, it is MM/DD/YY.
>
[quoted text clipped - 94 lines]
> >
> >.
CRR - 09 Jun 2004 20:24 GMT
OK, I've tried it without either the MERGEFORMAT or the
CHARFORMAT.  The field is defined as:
{CREATEDATE \@ "MM/DD/YY"}

When I first view the form, the field displays as
06/09/04.  In Print Preview, I see: Jun. 9, 04 2:13 PM

I can toggle to the field view & it is still:
{CREATEDATE \@ "MM/DD/YY"}

but I can F9 toggle right back to:  Jun 9, 04 2:13 PM

So it's not using the field format at all. *SIGH*

>-----Original Message-----
>You don't need either the \* MERGEFORMAT or \* CHARFORMAT
[quoted text clipped - 105 lines]
>
>.
Doug Robbins - Word MVP - 09 Jun 2004 22:13 GMT
I don't know if it will make any difference, but the switch should be
"MM/dd/yy"

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP

> OK, I've tried it without either the MERGEFORMAT or the
> CHARFORMAT.  The field is defined as:
[quoted text clipped - 138 lines]
> >
> >.
CRR - 10 Jun 2004 19:33 GMT
Tried, that, thanks, but same results
>-----Original Message-----
>I don't know if it will make any difference, but the switch should be
[quoted text clipped - 144 lines]
>
>.
CRR - 17 Jun 2004 16:30 GMT
Hello, Again,

I've found that, if I put the CREATEDATE in the body of
the document, bookmark it, then refer to the bookmark in
the header, then the proper formatting is retained.  Both
the date and the format are good, but...

The problem is that I don't want to see that date in the
body of the document. I have tried making the body field
hidden text.  This formatting is picked up in the header
and then the date is hidden there as well.  I've also
tried making the body text white (OK, cheating here...)
and setting the text in the header to black, but that
doesn't work, either.  

Anyone have any more ideas?

Chris
>-----Original Message-----
>Tried, that, thanks, but same results
[quoted text clipped - 176 lines]
>>
>.
Charles Kenyon - 17 Jun 2004 20:18 GMT
Make the text in the body white (instead of hidden). In your ref field (or
StyleRef field) use the \* CharFormat switch.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Hello, Again,
>
[quoted text clipped - 205 lines]
> >>
> >.
Charles Kenyon - 09 Jun 2004 22:43 GMT
Any chance you have two fields, one in a frame or textbox overlapping the
text field?

Try Alt-F9 to view field codes. That will pick up fields not displayed with
Shift-F9.

I've been following this thread and what you are describing is truly
bizarre.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> OK, I've tried it without either the MERGEFORMAT or the
> CHARFORMAT.  The field is defined as:
[quoted text clipped - 138 lines]
> >
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.