Footer on last page only Word 2007

Need the attached footer to display on last page only if page is multiple page document and 1st page if invoice is only one page

Does not matter to me if it is inserted as text,jpg etc.

Novice users so need very clear help please
Invoice-Cut-off-section.jpg
DanielCare-Merge-Sample.doc
ThemorseAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dlc110161Commented:
Are you going to have more than 2 pages?
If not, then I would create a Different First Page section. In the first footer, I would fill it with the Following fields.

1. Select the text you want added conditionally as a footer and create an AutoText entry called InvoiceFooter
2. Press CTRL+F9 and then place your cursor within the two braces and type IF followed by a quote
3. Then press CTRL+F9 - so your text should look something like: { IF "{ } }
4. Place your cursor inside the first set of braces and type NumPages, and then place your cursor outside the second brace, and type =1" - { IF "{ NumPages }=1" }
5. Then press CTRL+F9 to add another field: AUTOTEXT InvoiceFooter
6. Copy these fields to your main footer and change the =1 to >=1
7. Update each of the fields and close out of the Header footer section.

If you are going to have more than two pages, then the first calculation is going to get much more difficult and would be easiest done using some VBA.

Hopefully that gets you started.
Dawn Bleuel
Word MVP
0
dlc110161Commented:
In step # 2, I should have mentioned to do be in the FirstPage Footer when you get started.

Dawn Bleuel
Word MVP
0
GrahamSkanRetiredCommented:
From what you say, you always want the footer text to be displayed on the last page.

Therefore I think that Dawn's advice needs to be tweaked a bit. You can still use Autotext, though it can be avoided. However, you do need the ensure that it is the last page.

It will help to use the Field codes display toggle (Alt+F9). Also remember that the {} pairs are ar not enterd using ths shifted [ and ], but with Ctrl+F9 or along with a field insertion.

You need

{IF {PAGE} = {NUMPAGES} "text to be inserted which
may have graphics etc"}

0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

ThemorseAuthor Commented:
The table in the doc will split across the page and the invoice could be several page long or a single page.
Can you explain VBA please
0
ThemorseAuthor Commented:
I hate to sound stupid but can you explain "use the Field codes display toggle (Alt+F9). Also remember that the {} pairs are ar not enterd using ths shifted [ and ], but with Ctrl+F9 or along with a field insertion.



{IF {PAGE} = {NUMPAGES} "text to be inserted which
may have graphics etc"}
I tried alt F9 but did not see a command

What am I doing wrong
Test-Invoice-Sample-Merge.doc
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello Themorse,

You have just typed the text and the brackets. What Graham is suggesting, though, is that you insert fields. This can be done several ways, one of them is to hit Ctrl-F9.

Do this:

Edit the Footer.
Go to the beginning of the row and delete the text you typed.
Hit Ctrl-F9
You'll see a gray space with the curly brackets and the cursor blinking in the gray space. This is a Word Field
Type IF and a space into the field. Now you have an IF field.
Hit Ctrl-F9 to insert another field before the closing bracket of the IF field
Type PAGE and use the arrow keys to navigate past the closing bracket of this newly created Page field.
Type a blank and a = sign, another blank and insert another field with Ctrl-F9.
Type NUMPAGES and arrow past the curly brackets.
Type a " sign
Cut the footer text and paste it after the " sign and before the last closing bracket.
Put a closing " before the last bracket
Hide the field codes by hitting Alt-F9. This keyboard shortcut toggles field display on and off.

Don't be surprised if your footer now seems to have disappeared.
Go to the body of your document and enter text to make the second page appear.
Now you see the footer on the second page, or whatever the last page of the document is.

see attached.

cheers, teylyn

Test-Invoice-Sample-Merge-1.doc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GrahamSkanRetiredCommented:
The Alt+F9 toggle switches the document display between showing field codes and field results. For instance a page field on the first page will switch between showing 1 and showing { PAGE }. You will see that the { and } characters look a little diferent from their usual appearence. That is because they are field delimeters.

We can use the keyboard characters { and } to illustrate them here, but you cannot simply copy and paste from here because they would not be the actual field delimiters.

When you insert a field by name via the Field dialogue (Insert tab>Text group>Quick Parts Button > Field... entry), the field delimeters be inserted automaticlly around the field text.

If the field text is simple, you can use the Ctrl+F9 keystroke to enter the delimiters as an empty field and then type the text in between them. Also if you select any pre-existing text and type Ctrl+F9, the text will form the content of a new field.
 
0
ThemorseAuthor Commented:
Finally understand and solution worked great
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.