Word Mail Merge Date Filter

Ozzie2842

New Member
Joined
Jan 16, 2009
Messages
35
Hi Kids,

I'm looking for the Microsoft Word 2007 code for the current date. For example, in Excel I use "Today()". In a mail merge document (connected to Excel 2007 spreadsheet) where I'm trying to filter records where the field "date eligible" is greater than or equal to the current date. I'm hoping somebody out there knows the field code for this. Thanks in advance for looking into this.

Ozzie
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Word has its own DATE field. For a mailmerge filter to exclude records before the current date, you'd encode an SKIPIF field along the lines of:
{SKIPIF{MERGEFIELD EligibleDate \@ YYYYMMDD}< {DATE \@ YYYYMMDD}}
where 'EligibleDate' is your data field's name.

Note: The field brace pairs (i.e. '{ }') for the above example are created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practicable to add them via any of the standard Word dialogues.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top