#1
|
|||
|
|||
Left Margin error
When I try to use VBA to change left margin in Word I get an error, if I simply drag from the ruler - no problem.
But I want to use something like ActiveDocument.Sections(28).PageSetup.LeftMargin = 72 Run time error 5518 Increasing left margin causes first column to become too narrow some.... I have only one column Help please Update 1: There are many sections in the document, I am only concerened in this example with section 28. Its A4 Portrait Right margin normal. The error message is the 5518 above. Last edited by ireeve; 10-17-2014 at 06:16 AM. Reason: update |
#2
|
||||
|
||||
What error do you get? What is the page size, orientation & right margin size? Does the document actually have 28 Sections?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
This issue must in some way be related to your current page layout in that section as
ActiveDocument.Sections(1).PageSetup.LeftMargin = 72 runs without issue in a new blank document |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
can't get rid of left margin inside text box that contains image | enginist | Drawing and Graphics | 2 | 08-04-2014 10:31 AM |
No left margin when Mail Merging labels | wardmiller | Mail Merge | 5 | 04-26-2014 11:10 PM |
Making the second line of text in a numbered list wrap back to the left margin | aaron12345 | Word | 1 | 06-19-2012 05:29 PM |
Outlook Cuts Off Left Margin | mrshufu | Outlook | 0 | 01-25-2012 12:02 PM |
Running alphabets at left margins and pinpoint cites at right margin | ghumdinger | Word | 3 | 05-05-2011 02:01 AM |