Need to identify the last page in a word document.

D

dharmendrapau

Hi Guys,

I am new to this group and MS Word programming. I do lots of
programming in MS Access and VBA.

Need your expertise here.

I am trying to identify last page in a word document and put a message
called "LAST PAGE" on the header of the page.

Have you guys got any idea?

Thanks

Dave
 
J

Jonathan West

Hi Guys,

I am new to this group and MS Word programming. I do lots of
programming in MS Access and VBA.

Need your expertise here.

I am trying to identify last page in a word document and put a message
called "LAST PAGE" on the header of the page.

Have you guys got any idea?

Use fields

{ IF {PAGE} = {NUMPAGES} "LAST PAGE" "" }

where the {} characters are field braces inserted using Ctrl-F9
 

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