Trying to get a page number to show up in the header

L

Lynn Brown

Good Day

I am trying to find the code to have the page number show up at the top of
the page, but only if there is more than one page. I don't want this header
on the top of page one. The current code I have is: {if { { Page } =
{numpages} } "Page { page \*cardtext \*caps \*mergeformat }" "Boo"}.

Right now, I have the false answer as "Boo", so I can tell if it is working.
The document I am creating is a form, that currently has all data on the
first page. They would like the header of "Page Two" to show up on the
second page if it is required. They don't want anything to show up if the
data can be contained on the first page. I don't want to make the first page
different than the others, as then I would have to make the template into a
two page document, and that isn't what is wanted.

I am currently running Word (Office) 2003. Thank you very much for the help.
 
D

DaveLett

Hi Lynn,

This seems to do the trick:

{ IF { PAGE } = 1 "" "Page { Page \*cardtext \*caps \*mergeformat }" }

HTH,
Dave
 
L

Lynn Brown

Thanks Dave. It works great. Now to figure out why Page 3 comes out as Page
three instead of capitalized. Any idea why that would be?
 
L

Lynn Brown

That didn't work. Page Two is capitalized, but Page three and Page four
aren't. I don't know why this wouldn't work for the remainder of the pages.
 
D

DaveLett

Hi Lynn,
The following is working for me:

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat } \*caps }

HTH,
Dave
 
L

Lynn Brown

I copied the code, and I couldn't get it to work for me. As there is no End
Quote, when I put it in Word 2003, I just get Page and then blank.
I have given it to her now, and hope that they don't go past two pages.

Thanks for all your help.
 
D

DaveLett

Hi Lynn,
Sorry for the missing end quote...typo.

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat }" \*caps }

Dave
 
L

Lynn Brown

Thank you, thank you, thank you.

DaveLett said:
Hi Lynn,
Sorry for the missing end quote...typo.

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat }" \*caps }

Dave
 
D

Dan McGough

I'm trying to get my Appendices to show up in the TOC like this: A-1, B-1, C-1. I have inserted section breaks for each new appendix but in the TOC these appendix show page numbered 1, 1, 1. How do I get the Alpha characters to show up in the TOC?



DaveLett wrote:

Hi Lynn,Sorry for the missing end quote...typo.
11-Sep-09

Hi Lynn
Sorry for the missing end quote...typo

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat }" \*caps

Dav

:

Previous Posts In This Thread:

Trying to get a page number to show up in the header
Good Da

I am trying to find the code to have the page number show up at the top o
the page, but only if there is more than one page. I do not want this heade
on the top of page one. The current code I have is: {if { { Page }
{numpages} } "Page { page \*cardtext \*caps \*mergeformat }" "Boo"}

Right now, I have the false answer as "Boo", so I can tell if it is working
The document I am creating is a form, that currently has all data on th
first page. They would like the header of "Page Two" to show up on th
second page if it is required. They do not want anything to show up if th
data can be contained on the first page. I do not want to make the first pag
different than the others, as then I would have to make the template into
two page document, and that is not what is wanted

I am currently running Word (Office) 2003. Thank you very much for the help.

RE: Trying to get a page number to show up in the header
Hi Lynn

This seems to do the trick

{ IF { PAGE } = 1 "" "Page { Page \*cardtext \*caps \*mergeformat }"

HTH
Dav

:

Thanks Dave. It works great.
Thanks Dave. It works great. Now to figure out why Page 3 comes out as Pag
three instead of capitalized. Any idea why that would be

:

RE: Trying to get a page number to show up in the header
Hi Lynn

Try putting a space between "\*" and "caps"

Dav

:

That didn't work.
That did not work. Page Two is capitalized, but Page three and Page fou
are not. I do not know why this would not work for the remainder of the pages

:

RE: Trying to get a page number to show up in the header
Hi Lynn
The following is working for me

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat } \*caps

HTH
Dave

I copied the code, and I couldn't get it to work for me.
I copied the code, and I could not get it to work for me. As there is no En
Quote, when I put it in Word 2003, I just get Page and then blank
I have given it to her now, and hope that they do not go past two pages

Thanks for all your help

:

Hi Lynn,Sorry for the missing end quote...typo.
Hi Lynn
Sorry for the missing end quote...typo

{ IF { PAGE } = 1 "" "Page { PAGE \*cardtext \*mergeformat }" \*caps

Dav

:

RE: Trying to get a page number to show up in the header
Thank you, thank you, thank you

:

EggHeadCafe - Software Developer Portal of Choice
HTML Hyperlink Obfuscation with Client Script
http://www.eggheadcafe.com/tutorial...3-371cf317efc5/html-hyperlink-obfuscatio.aspx
 

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