A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Bulleting entries



 
 
Thread Tools Display Modes
  #1  
Old June 29th, 2007, 01:36 AM posted to microsoft.public.word.mailmerge.fields
Harimau
external usenet poster
 
Posts: 38
Default Bulleting entries

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
  #2  
Old June 29th, 2007, 09:23 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Bulleting entries

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 InsertWord 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" wrote in message
...
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



  #3  
Old June 29th, 2007, 09:27 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Bulleting entries

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 charactertab characterReport1" "" }{ IF "{ MERGEFIELD "Report
2" }" = "1" "
bullet charactertab characterReport2" "" }{ IF "{ MERGEFIELD "Report
3" }" = "1" "
bullet charactertab characterReport3" "" }{ IF "{ MERGEFIELD "Report
4" }" = "1" "
bullet charactertab characterReport4" "" }

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" wrote in message
...
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


  #4  
Old July 2nd, 2007, 08:28 AM posted to microsoft.public.word.mailmerge.fields
Harimau
external usenet poster
 
Posts: 38
Default Bulleting entries

I see. Thanks guys, that really helped! It works perfectly now.
  #5  
Old August 14th, 2009, 08:27 PM posted to microsoft.public.word.mailmerge.fields
Jeff C
external usenet poster
 
Posts: 392
Default Bulleting entries

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 charactertab characterReport1" "" }{ IF "{ MERGEFIELD "Report
2" }" = "1" "
bullet charactertab characterReport2" "" }{ IF "{ MERGEFIELD "Report
3" }" = "1" "
bullet charactertab characterReport3" "" }{ IF "{ MERGEFIELD "Report
4" }" = "1" "
bullet charactertab characterReport4" "" }

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" wrote in message
...
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.