You don't post your code so I don't know exactly what you are doing, but
999999 is a code that means that the property you are querying is not the
same across the whole range you are querying it. Are you perhaps querying
margins for the whole document when you have multiple sections with
different margins?

Signature
Enjoy,
Tony
> Hello,
>
[quoted text clipped - 9 lines]
> Thanks,
> Peter
Peter - 18 Dec 2007 15:06 GMT
Yes thank you. I was using pagesetup on the document. I switched to
section.pagesetup and then everything was fine.
Thanks again.
Peter
> You don't post your code so I don't know exactly what you are doing, but
> 999999 is a code that means that the property you are querying is not the
[quoted text clipped - 15 lines]
> > Thanks,
> > Peter