Re: Insert Word Field IF statements and dates
From: Graham Mayor (gmayor_at_DELETECAPSmvps.org)
Date: 04/05/04
- Next message: macropod: "Re: Adding Bookmarks Manually"
- Previous message: Graham Mayor: "Re: NO 'Mail Merge' Command in <Tools> !"
- In reply to: rlampky: "Re: Insert Word Field IF statements and dates"
- Next in thread: rlampky: "Re: Insert Word Field IF statements and dates"
- Reply: rlampky: "Re: Insert Word Field IF statements and dates"
- Reply: macropod: "Re: Insert Word Field IF statements and dates"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Apr 2004 07:53:46 +0100
{IF {Date \@ "dddd"} = Friday "insert a page break here" "{IF {Date \@
"dddd"} = Saturday "insert a page break here"}" ""}
should do the trick. Insert the page break where indicated within the field.
If the test is for a the result of a merge field change the Date fields to
the Merge field.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
rlampky wrote:
> Using a multipage document and entering a date field such as the many
> examples shown on the WOPR site. How would one write the IF statement
> to respond if the day is friday or saturday to autotext insert a
> newpage in the document at the end of the current document?
>
>
> How would you write the if statement to cause a document ins
> "macropod" <pNeOd.sStPeAiMn@pcug.org.au (del NO.SPAM)> wrote in
> message news:c40t9p$2dj31o$1@ID-216222.news.uni-berlin.de...
>> PS: One of the examples in the document shows how to calculate the #
>> days difference between two dates. Using your IF tests to compare
>> the result to
>>> 90 will give you all you need to do the rest.
>>
>>
>> "macropod" <pNeOd.sStPeAiMn@pcug.org.au (del NO.SPAM)> wrote in
>> message news:c40k01$2bfp6m$1@ID-216222.news.uni-berlin.de...
>>> Hi Charles,
>>>
>>> Go to:
>>> http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=249902
>>> (url all one line)
>>> Where you can download a Word document for doing date calculations
>>> using Word fields instead of vba.
>>>
>>> For this case, you'd convert both today's date and the account date
>>> to Julian day numbers and compare the difference.
>>>
>>> Cheers
>>>
>>> "Charles" <anonymous@discussions.microsoft.com> wrote in message
>>> news:13bcc01c412f1$1537c010$a401280a@phx.gbl...
>>>> How do I get the if statement to act on a date in a
>>>> mailmerge. I want to notify people with accounts more
>>>> than 90 days old. Using the Insert Word Field button on
>>>> the MailMerge toolbar I put IF: Date/Time Greater Than
>>>> date()-90 . Is this the correct way to enter this? What
>>>> is the proper way to do this?
>>>
>>>
>>> ---
>>> Outgoing mail is certified Virus Free.
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.627 / Virus Database: 402 - Release Date: 16/03/2004
>>>
>>>
>>
>>
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.627 / Virus Database: 402 - Release Date: 16/03/2004
- Next message: macropod: "Re: Adding Bookmarks Manually"
- Previous message: Graham Mayor: "Re: NO 'Mail Merge' Command in <Tools> !"
- In reply to: rlampky: "Re: Insert Word Field IF statements and dates"
- Next in thread: rlampky: "Re: Insert Word Field IF statements and dates"
- Reply: rlampky: "Re: Insert Word Field IF statements and dates"
- Reply: macropod: "Re: Insert Word Field IF statements and dates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|