Lojze,
I don't know what Lotus script (Lotus notes application) brings into the
mix.
See comment below.
> I use Lotus script (Lotus notes appliaction) so I change your sub to:
> Sub UpdateAllFields()
[quoted text clipped - 16 lines]
>
> Now after protection I got on all pages 4 of 4.
Looks like your initial problem is that you are using the wrong fields.
When you go into header of footer in Word, there is a AutoText list entry on
the toolbar you can use: that produces text like this:
Page { PAGE } of { NUMPAGES }
When you go into footer or header and toggle between the code and results
with keys ALT/F9, what do you see.
You can edit the very first field to say { PAGE }, if it doesn't, and
normally all the subsequent similar fields in the document will change, too.
Things get more complicated when you want the numbering to restart in each
section, etc.
> Regards
> Lojze
[quoted text clipped - 60 lines]
>>>>>
>>>>> Lojze

Signature
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID