(Msg. 1) Posted: Thu Jun 28, 2007 5:36 pm
Post subject: Bulleting entries Archived from groups: microsoft>public>word>mailmerge>fields (more info?)
Hi there,
I am currently using Microsoft Office 2004 for Macintosh. I'm trying to use
Data Merge to create some mass letters. I have an excel spreadsheet as my
data source, with the usual contact, address, title columns... Then I also
have several boolean columns called "Report 1", "Report 2", "Report 3",
"Report 4". Each of these four columns have either 0 and 1.
What I want to do in the Document is that for each record, if the value in
"Record 1", say, is "1", then i want to insert "Report 1" in the document.
However, I also want that "Report 1" text to be bulleted. The reason is that
I want to create a bullet list for the reports that this client wants. So if
for a particular client has Report1 = 1, Report2=0, Report3=0, Report4=1 Then
i want some output like:
* Report 1
* Report 2
In the document.
Is there some sort of special code I can add to the "Insert text if true"
section when i'm using "If...Then...Else" word field when creating my merge?
Or is there a better way?
Sorry if I didn't articulate what i'm asking well enough, first time using
Mail Merge.
(Msg. 2) Posted: Fri Jun 29, 2007 9:27 am
Post subject: Re: Bulleting entries [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I don't think this will be easy to do in the "If Then Else" dialog box but
you should be able to do it by editing the fields directly in the document.
This is more difficult to describe for Mac Word compared to Windows Word,
simply because Mac OS X may have grabbed the keystrokes that Word normally
sets up to work with fields, so I suggest you have a look at Daiya
Mitchell's article at
Where
a. each pair of {} needs to tbe the special field braces that you can
insert using the "Type field braces" keyboard shortcut - here, Command-F9
works OK
b. "Report 1", "Report 2", "Report 3" and "Report 4" need to be the field
names in your data source. If there are no spaces in the field names, you do
not need the quotes around the names.
c. <bullet character> is a suitable bullet character, for example one of
the ones in the Wingdings2 font
d. <tab character> is just a normal tab (i.e. you can enter it on the
keyboard)
e. you need to have an ordinary new paragraph character at the end of each
line, i.e. after "1" "
I have tried to show that here, but you may not see it correctly in your
newsreader. But the idea is that if the mergefield is 1, you insert a new
paragraph followed by the bullet, a tab, then "Report 1"
You may need an additional tab before <bullet character>
This assumes that you really just want the short text "Report 1" after each
bullet. If you actually want to insert more at that point, this approach
will not be enough.
Clearly, the layout is rather restricted using this method, but the problem
is that if you try to format these lines with paragraph formatting that
inserts a bullet, you get "interference" because you have a paragraph style
inside the IF and another one at the end of the paragraph containing the IF.
It isn't very easy to get that to work reliably, so the above approach
assumes that the paragraph styles inside and outside the IF are the same.
Peter Jamieson
"Harimau" <Harimau RemoveThis @discussions.microsoft.com> wrote in message
news:94977EB9-B2CA-45C5-9023-2D9A476CFB60@microsoft.com...
> Hi there,
>
> I am currently using Microsoft Office 2004 for Macintosh. I'm trying to
> use
> Data Merge to create some mass letters. I have an excel spreadsheet as my
> data source, with the usual contact, address, title columns... Then I also
> have several boolean columns called "Report 1", "Report 2", "Report 3",
> "Report 4". Each of these four columns have either 0 and 1.
>
> What I want to do in the Document is that for each record, if the value in
> "Record 1", say, is "1", then i want to insert "Report 1" in the document.
> However, I also want that "Report 1" text to be bulleted. The reason is
> that
> I want to create a bullet list for the reports that this client wants. So
> if
> for a particular client has Report1 = 1, Report2=0, Report3=0, Report4=1
> Then
> i want some output like:
>
> * Report 1
> * Report 2
>
> In the document.
>
> Is there some sort of special code I can add to the "Insert text if true"
> section when i'm using "If...Then...Else" word field when creating my
> merge?
> Or is there a better way?
>
> Sorry if I didn't articulate what i'm asking well enough, first time using
> Mail Merge.
>
> Thanks in advance,
>
> Iwan J
(Msg. 3) Posted: Fri Jun 29, 2007 6:23 pm
Post subject: Re: Bulleting entries [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
An If...then...Else field construction is what you need to use. I can be
easier to construct them directly from the Keyboard (or just put some dummy
results, like A and B, or True and False if you use the Insert>Word command
facility. Then press Alt+F9 to display the field codes and modify the
results to be what you want. If you are doing it directly form the
keyboard, you must use Ctrl+F9 to insert the field delimiters. Either way,
with the field codes displayed, you would need to create something that
looks like the following
{ IF { MERGEFIELD Report 1 } = 1 ". Report 1" }
Note, the . in the above is not a bullet as inserted by the use of bullets
and numbering, but is a symbol, inserted by holding down the Alt key and
typing 0149 on the numeric keypad.
When you have your field constructions set up, use Alt+F9 to toggle of the
display of the field codes.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
"Harimau" <Harimau DeleteThis @discussions.microsoft.com> wrote in message
news:94977EB9-B2CA-45C5-9023-2D9A476CFB60@microsoft.com...
> Hi there,
>
> I am currently using Microsoft Office 2004 for Macintosh. I'm trying to
> use
> Data Merge to create some mass letters. I have an excel spreadsheet as my
> data source, with the usual contact, address, title columns... Then I also
> have several boolean columns called "Report 1", "Report 2", "Report 3",
> "Report 4". Each of these four columns have either 0 and 1.
>
> What I want to do in the Document is that for each record, if the value in
> "Record 1", say, is "1", then i want to insert "Report 1" in the document.
> However, I also want that "Report 1" text to be bulleted. The reason is
> that
> I want to create a bullet list for the reports that this client wants. So
> if
> for a particular client has Report1 = 1, Report2=0, Report3=0, Report4=1
> Then
> i want some output like:
>
> * Report 1
> * Report 2
>
> In the document.
>
> Is there some sort of special code I can add to the "Insert text if true"
> section when i'm using "If...Then...Else" word field when creating my
> merge?
> Or is there a better way?
>
> Sorry if I didn't articulate what i'm asking well enough, first time using
> Mail Merge.
>
> Thanks in advance,
>
> Iwan J
(Msg. 4) Posted: Mon Jul 02, 2007 12:28 am
Post subject: Re: Bulleting entries [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I see. Thanks guys, that really helped! It works perfectly now.
(Msg. 5) Posted: Fri Aug 14, 2009 12:27 pm
Post subject: Re: Bulleting entries [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I'm finding out first hand just how difficult / unreliable it is to try to
use the real bulleted lists conditionally like this. The text I'm dealing
with is longer, though, and needs to be indented.
Any help would be much appreciated.
"Peter Jamieson" wrote:
> I don't think this will be easy to do in the "If Then Else" dialog box but
> you should be able to do it by editing the fields directly in the document.
> This is more difficult to describe for Mac Word compared to Windows Word,
> simply because Mac OS X may have grabbed the keystrokes that Word normally
> sets up to work with fields, so I suggest you have a look at Daiya
> Mitchell's article at
>
> http://word.mvps.org/mac/FieldsInMacWord.html >
> before going any further.
>
> What you need is something like this:
>
> { IF "{ MERGEFIELD "Report 1" }" = "1" "
> <bullet character><tab character>Report1" "" }{ IF "{ MERGEFIELD "Report
> 2" }" = "1" "
> <bullet character><tab character>Report2" "" }{ IF "{ MERGEFIELD "Report
> 3" }" = "1" "
> <bullet character><tab character>Report3" "" }{ IF "{ MERGEFIELD "Report
> 4" }" = "1" "
> <bullet character><tab character>Report4" "" }
>
> Where
> a. each pair of {} needs to tbe the special field braces that you can
> insert using the "Type field braces" keyboard shortcut - here, Command-F9
> works OK
> b. "Report 1", "Report 2", "Report 3" and "Report 4" need to be the field
> names in your data source. If there are no spaces in the field names, you do
> not need the quotes around the names.
> c. <bullet character> is a suitable bullet character, for example one of
> the ones in the Wingdings2 font
> d. <tab character> is just a normal tab (i.e. you can enter it on the
> keyboard)
> e. you need to have an ordinary new paragraph character at the end of each
> line, i.e. after "1" "
> I have tried to show that here, but you may not see it correctly in your
> newsreader. But the idea is that if the mergefield is 1, you insert a new
> paragraph followed by the bullet, a tab, then "Report 1"
>
> You may need an additional tab before <bullet character>
>
> This assumes that you really just want the short text "Report 1" after each
> bullet. If you actually want to insert more at that point, this approach
> will not be enough.
>
> Clearly, the layout is rather restricted using this method, but the problem
> is that if you try to format these lines with paragraph formatting that
> inserts a bullet, you get "interference" because you have a paragraph style
> inside the IF and another one at the end of the paragraph containing the IF.
> It isn't very easy to get that to work reliably, so the above approach
> assumes that the paragraph styles inside and outside the IF are the same.
>
> Peter Jamieson
>
>
>
> "Harimau" <Harimau.RemoveThis@discussions.microsoft.com> wrote in message
> news:94977EB9-B2CA-45C5-9023-2D9A476CFB60@microsoft.com...
> > Hi there,
> >
> > I am currently using Microsoft Office 2004 for Macintosh. I'm trying to
> > use
> > Data Merge to create some mass letters. I have an excel spreadsheet as my
> > data source, with the usual contact, address, title columns... Then I also
> > have several boolean columns called "Report 1", "Report 2", "Report 3",
> > "Report 4". Each of these four columns have either 0 and 1.
> >
> > What I want to do in the Document is that for each record, if the value in
> > "Record 1", say, is "1", then i want to insert "Report 1" in the document.
> > However, I also want that "Report 1" text to be bulleted. The reason is
> > that
> > I want to create a bullet list for the reports that this client wants. So
> > if
> > for a particular client has Report1 = 1, Report2=0, Report3=0, Report4=1
> > Then
> > i want some output like:
> >
> > * Report 1
> > * Report 2
> >
> > In the document.
> >
> > Is there some sort of special code I can add to the "Insert text if true"
> > section when i'm using "If...Then...Else" word field when creating my
> > merge?
> > Or is there a better way?
> >
> > Sorry if I didn't articulate what i'm asking well enough, first time using
> > Mail Merge.
> >
> > Thanks in advance,
> >
> > Iwan J
>
>
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum