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 / January 2005

Tip: Looking for answers? Try searching our database.

Gutter Margin Problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Blake - 19 Jan 2005 21:38 GMT
I'm having problems setting the gutter margins in a
document programatically. I want to make sure that each
section in the document has a .25 inch gutter margin
because sometimes sections get inserted from elsewhere
that do not have this gutter margin set. I've tried it
simply like this:

With ActiveDocument.PageSetup
       .Gutter = 18
End With

The problem seems to be that when it reaches a section
that does not have a .25 inch gutter margin that I get a
Value Out of Range error (caused because the gutter margin
does not equal .25?). How can I make sure that this will
work?

Thanks for any help,

Blake
Helmut Weber - 20 Jan 2005 16:05 GMT
Hi Blake,
I can't test this, but it might be worth a try:

Dim oSct As Section
For Each oSct In ActiveDocument.Sections
  oSct.PageSetup.Gutter = 18
Next

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Blake - 20 Jan 2005 20:06 GMT
I tried it and still got the same error. This should be
straight-forward. It may be related to some wierd problem
I'm having right now with next page section breaks that I
posted today (1-20) in Page Layout. Basically, my next
page section breaks are fine in normal and print layout
view, but do not cause the next section to start on a new
page in print preview and when the document is printed.
>-----Original Message-----
>Hi Blake,
[quoted text clipped - 12 lines]
>http://word.mvps.org/
>.
 
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.