Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Field for day of the week?

I have a date in a block of text that gets manually changed with each
new report. I repeat that date at various places in the document
using a STYLEREF field. At one place, I would like to automatically
insert the day of the week of this date. Is that possible?

Ed
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Field for day of the week?

If the text is a date field, you can use formatting switches to get the day
of the week. See http://word.mvps.org/FAQs/TblsFldsFms/DateFields.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Ed from AZ" wrote in message
...
I have a date in a block of text that gets manually changed with each
new report. I repeat that date at various places in the document
using a STYLEREF field. At one place, I would like to automatically
insert the day of the week of this date. Is that possible?

Ed


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Field for day of the week?

No, sorry. It's manually typed in as the date the report is due.
I've dreate a style for it, though, to use the STYLEREF fields to copy
it elsewhere in the document. Does that help any? 8/

Ed


On Nov 19, 10:35 am, "Suzanne S. Barnhill" wrote:
If the text is a date field, you can use formatting switches to get the day
of the week. Seehttp://word.mvps.org/FAQs/TblsFldsFms/DateFields.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Ed from AZ" wrote in ...



I have a date in a block of text that gets manually changed with each
new report. I repeat that date at various places in the document
using a STYLEREF field. At one place, I would like to automatically
insert the day of the week of this date. Is that possible?


Ed- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Field for day of the week?

Hi Ed,

The simplest way is to bookmark your date and add a cross-reference to it from the header.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Ed from AZ" wrote in message ...
No, sorry. It's manually typed in as the date the report is due.
I've dreate a style for it, though, to use the STYLEREF fields to copy
it elsewhere in the document. Does that help any? 8/

Ed


On Nov 19, 10:35 am, "Suzanne S. Barnhill" wrote:
If the text is a date field, you can use formatting switches to get the day
of the week. Seehttp://word.mvps.org/FAQs/TblsFldsFms/DateFields.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Ed from AZ" wrote in ...



I have a date in a block of text that gets manually changed with each
new report. I repeat that date at various places in the document
using a STYLEREF field. At one place, I would like to automatically
insert the day of the week of this date. Is that possible?


Ed- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Field for day of the week?

Yes, it does help. You can use a formatting switch in a StyleRef field. For
example, if the style you created is named MyDate, then this field will show
the day of the week for the date that has the style:

{StyleRef MyDate \@ "dddd"}

Be aware that if the field refers to text that isn't a valid date, the field
result will just repeat the text (for example, if the style is applied to
the text "November 32, 2007" then the field will also show "November 32,
2007"). And if there is no text with that style, it will show an error
message.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Ed from AZ wrote:
No, sorry. It's manually typed in as the date the report is due.
I've dreate a style for it, though, to use the STYLEREF fields to copy
it elsewhere in the document. Does that help any? 8/

Ed


On Nov 19, 10:35 am, "Suzanne S. Barnhill" wrote:
If the text is a date field, you can use formatting switches to get
the day
of the week. Seehttp://word.mvps.org/FAQs/TblsFldsFms/DateFields.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
all may benefit.

"Ed from AZ" wrote in
...



I have a date in a block of text that gets manually changed with
each new report. I repeat that date at various places in the
document using a STYLEREF field. At one place, I would like to
automatically insert the day of the week of this date. Is that
possible?


Ed- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Ed from AZ Ed from AZ is offline
external usenet poster
 
Posts: 91
Default Field for day of the week?

Thank you, Jay! That worked great!
Ed


On Nov 19, 12:18 pm, "Jay Freedman" wrote:
Yes, it does help. You can use a formatting switch in a StyleRef field. For
example, if the style you created is named MyDate, then this field will show
the day of the week for the date that has the style:

{StyleRef MyDate \@ "dddd"}

Be aware that if the field refers to text that isn't a valid date, the field
result will just repeat the text (for example, if the style is applied to
the text "November 32, 2007" then the field will also show "November 32,
2007"). And if there is no text with that style, it will show an error
message.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.



Ed from AZ wrote:
No, sorry. It's manually typed in as the date the report is due.
I've dreate a style for it, though, to use the STYLEREF fields to copy
it elsewhere in the document. Does that help any? 8/


Ed


On Nov 19, 10:35 am, "Suzanne S. Barnhill" wrote:
If the text is a date field, you can use formatting switches to get
the day
of the week. Seehttp://word.mvps.org/FAQs/TblsFldsFms/DateFields.htm


--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so
all may benefit.


"Ed from AZ" wrote in
...


I have a date in a block of text that gets manually changed with
each new report. I repeat that date at various places in the
document using a STYLEREF field. At one place, I would like to
automatically insert the day of the week of this date. Is that
possible?


Ed- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cut and paste option is not available (was working last week) B Spencer Microsoft Word Help 1 July 10th 07 11:28 PM
How to master Microsoft Word in a week ? cosmicwonder Microsoft Word Help 3 March 3rd 07 03:26 PM
100 Word docs per week Tom Microsoft Word Help 9 August 27th 06 04:26 AM
how do you get a 5 week calendar annette Microsoft Word Help 1 July 1st 06 07:35 PM
Subtract a week using field code? [email protected] Page Layout 2 February 3rd 06 06:33 AM


All times are GMT +1. The time now is 09:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"