Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2007

Tip: Looking for answers? Try searching our database.

Pagesetup returns 9999999 for margins

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 17 Dec 2007 20:49 GMT
Hello,

I'm trying to copy the margin information from one document to another. If I
open the pagesetup dialog box, everything seems normal but if I use the
following code (whether in a macro or in the immediate window) the values
returned are 999999 seemingly at random. This does not happen for all the
margins. For example, topmargin might (returns 72 as expected) be ok and
bottommargin will return 9999999. Anyone have any ideas what is going on here?

Thanks,
Peter
Tony Jollans - 17 Dec 2007 21:05 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.