Bilby
04-06-2006, 04:22 PM
Greetings,
Recently I had to get around to solving a problem with NumPages field which refused to automatically update if it was in the main body of the document (I'm using Word XP SP2).
I found that I had to test for a wdFieldNumPages field Type , then use the
"\line" bookmark to select the entire line (.Select doesn't work). Then use the selection object to update.
The code was then dumped into a custom Print Preview routine to force the update and it now works reliably and consistently.
My question is; Does anyone know why? The only post I found was back in 2004. I have a workable solution but I just don't understand WWWWWWHHHHHYYYYY!!!!!!!
Recently I had to get around to solving a problem with NumPages field which refused to automatically update if it was in the main body of the document (I'm using Word XP SP2).
I found that I had to test for a wdFieldNumPages field Type , then use the
"\line" bookmark to select the entire line (.Select doesn't work). Then use the selection object to update.
The code was then dumped into a custom Print Preview routine to force the update and it now works reliably and consistently.
My question is; Does anyone know why? The only post I found was back in 2004. I have a workable solution but I just don't understand WWWWWWHHHHHYYYYY!!!!!!!