Is there a field code for section break (next page)?

P

Peter Jamieson

No, but if you want to include one conditionally, you can put one inside the
result of an if field, e.g.

{ IF { MERGEFIELD x } = "Y" "<put a page break character here" }
 
N

nph12

What should {QUOTE 12} do? Is there not a field code for section break? What
about ^b, ^m or ^12?

macropod said:
Or you could use:
{IF{ MERGEFIELD x}= "Y" {QUOTE 12}}

--
Cheers
macropod
[MVP - Microsoft Word]
 
P

Peter Jamieson

Unfortunately I have probably confused things by saying "page break" rather
than "section break". AFAIK { QUOTE 12 } inserts a page break, although
macropod may know otherwise.
Is there not a field code for section break

There isn't a /specialised/ field code for a section break, no. I think the
nearest you will get is to do something like

{ SET sb "<insert a section break here>" }

and use

{ REF sb }

to insert it. beware, because section breaks have a habit of turning into
"Next Page Sectionbreaks" when you do this, even when what you insert is
another type of break.

FWIW { QUOTE aa bb cc } inserts the characters corresponding to aa, bb, cc

e.g. if the font is set to Arial Unicode MS, then

{ QUOTE 65 66 67 0x2780 }

inserts ABC followed by a circled 1.


--
Peter Jamieson
http://tips.pjmsn.me.uk

nph12 said:
What should {QUOTE 12} do? Is there not a field code for section break?
What
about ^b, ^m or ^12?

macropod said:
Or you could use:
{IF{ MERGEFIELD x}= "Y" {QUOTE 12}}

--
Cheers
macropod
[MVP - Microsoft Word]


Peter Jamieson said:
No, but if you want to include one conditionally, you can put one
inside the
result of an if field, e.g.

{ IF { MERGEFIELD x } = "Y" "<put a page break character here" }

--
Peter Jamieson
http://tips.pjmsn.me.uk

Is there a field code for section break (next page)?
 
N

nph12

Is it possible to add a section break (next page) by using VBA?

Peter Jamieson said:
Unfortunately I have probably confused things by saying "page break" rather
than "section break". AFAIK { QUOTE 12 } inserts a page break, although
macropod may know otherwise.
Is there not a field code for section break

There isn't a /specialised/ field code for a section break, no. I think the
nearest you will get is to do something like

{ SET sb "<insert a section break here>" }

and use

{ REF sb }

to insert it. beware, because section breaks have a habit of turning into
"Next Page Sectionbreaks" when you do this, even when what you insert is
another type of break.

FWIW { QUOTE aa bb cc } inserts the characters corresponding to aa, bb, cc

e.g. if the font is set to Arial Unicode MS, then

{ QUOTE 65 66 67 0x2780 }

inserts ABC followed by a circled 1.


--
Peter Jamieson
http://tips.pjmsn.me.uk

nph12 said:
What should {QUOTE 12} do? Is there not a field code for section break?
What
about ^b, ^m or ^12?

macropod said:
Or you could use:
{IF{ MERGEFIELD x}= "Y" {QUOTE 12}}

--
Cheers
macropod
[MVP - Microsoft Word]


No, but if you want to include one conditionally, you can put one
inside the
result of an if field, e.g.

{ IF { MERGEFIELD x } = "Y" "<put a page break character here" }

--
Peter Jamieson
http://tips.pjmsn.me.uk

Is there a field code for section break (next page)?
 
M

macropod

Hi nph12,

{QUOTE 12} inserts a page break. I don't know of a field code that inserts a Section break. Is there a particular reason a page
break won't suffice?

And yes, it is possible to insert Section breaks with vba. However, that requires a rather different approach to the whole of the
mailmerge operation than using field coding alone.

--
Cheers
macropod
[MVP - Microsoft Word]


nph12 said:
Is it possible to add a section break (next page) by using VBA?

Peter Jamieson said:
Unfortunately I have probably confused things by saying "page break" rather
than "section break". AFAIK { QUOTE 12 } inserts a page break, although
macropod may know otherwise.
Is there not a field code for section break

There isn't a /specialised/ field code for a section break, no. I think the
nearest you will get is to do something like

{ SET sb "<insert a section break here>" }

and use

{ REF sb }

to insert it. beware, because section breaks have a habit of turning into
"Next Page Sectionbreaks" when you do this, even when what you insert is
another type of break.

FWIW { QUOTE aa bb cc } inserts the characters corresponding to aa, bb, cc

e.g. if the font is set to Arial Unicode MS, then

{ QUOTE 65 66 67 0x2780 }

inserts ABC followed by a circled 1.


--
Peter Jamieson
http://tips.pjmsn.me.uk

nph12 said:
What should {QUOTE 12} do? Is there not a field code for section break?
What
about ^b, ^m or ^12?

:

Or you could use:
{IF{ MERGEFIELD x}= "Y" {QUOTE 12}}

--
Cheers
macropod
[MVP - Microsoft Word]


No, but if you want to include one conditionally, you can put one
inside the
result of an if field, e.g.

{ IF { MERGEFIELD x } = "Y" "<put a page break character here" }

--
Peter Jamieson
http://tips.pjmsn.me.uk

Is there a field code for section break (next page)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top