copying and pasting code in a footer

  • Thread starter Thread starter Hilary
  • Start date Start date
H

Hilary

Hi.

I have a word doc that has the following code in the
footer:

if {page} ={numpages} "All other terms and conditions
remain unchanged Page {Page}of {Numpages}

This is used because a different footer must be on the
last page of the document. The total number of pages in
the document are unknown until a form field in the body of
the doc is populated with data by the AS400. Therefore,
the above code is used to automatically place the correct
the footer on the correct page.

The problem arises when the entire footer (formatted text
plus the above code) is copied and pasted into a new doc.
For some reason, when it is copied and pasted using Word
2003, the formatting is completely off and the image does
not appear. When Word 2000 is used, the footer is correct.

Could this be a bug in Word 2003 or does anyone have any
ideas? Thanks in advance!

Hilary
 
G'day "Hilary" <[email protected]>,

I am wondering whether any of the Paste Special options help you here.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


Hilary reckoned:
 
Hi Steve.

Unfortunately we explored that option, and it didn't work
either.

Thanks!

Hilary
 
Hi Hilary,
The problem arises when the entire footer (formatted text
plus the above code) is copied and pasted into a new doc.
For some reason, when it is copied and pasted using Word
2003, the formatting is completely off and the image does
not appear. When Word 2000 is used, the footer is correct.
Mmmmm. I don't know why Word 2003 would be behaving
differently than 2000, here. It might help the guessing game
if you'd list exactly what kind of formatting isn't coming
across, but it sounds to me as if not all the paragraph
marks are being selected before copying...

However:
1. Have you considered using a TEMPLATE to create the new
documents, so that they'd have this already? That would sure
save a few steps :-)

2. Or how about creating an AutoText entry to insert, as
required? That would also be quite a bit faster than
copy/paste.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
 
Hi Hilary,

It looks to me like the field coding that you posted is incomplete
Instead of:
if {page} = {numpages} "All other terms and conditions
remain unchanged Page {Page}of {Numpages}
it should be:
{if {page} = {numpages} "All other terms and conditions
remain unchanged Page" "{Page}of {Numpages}"}

The differences are crucial to getting the field to work.

Cheer
 
Hi Cindy.

If I were the project leader, I would be using a template,
trust me! However...this is the way we have to do it.

I did a select all, so I made sure all of the info in the
footer is being selected. Plus, it works in 2000 which
makes no sense at all.

Regarding the autotext entry--part of the footer contains
an image of a signature. Would we be able to use that
still?

Thanks!

Hilary
 
Back
Top