#1
|
|||
|
|||
Margins in mixed portrait/landscape doc
Hi, everyone.
I have a Word 2016 document that is made up of portrait pages. This document will be used as a template by others as a jumping off point. One of thing things they will probably need to do is add a page and swap it to landscape so that they can insert a full page landscape diagram. The problem is that if they insert a page/section break to generate the blank page, and then change it to landscape, the margins are swapped (so that the margin for the top of the portrait page now becomes the right-side margin). This is incredibly frustrating as it messes up the headers and footers. I want the margins to remain absolute for the top, bottom, left and right sides regardless of orientation. I don't want my users to have to manually change the margins every time they introduce a landscape page, which is just plain stupid. Is there a way to do this? Am I missing something? |
#2
|
||||
|
||||
You could use a macro like:
Code:
Sub ChangeOrientation() Application.ScreenUpdating = False Dim sMT As Single, sMB As Single, SML As Single, sMR As Single, sMG As Single With Selection .InsertBreak wdSectionBreakNextPage With .PageSetup sMT = .TopMargin sMB = .BottomMargin sMR = .RightMargin SML = .LeftMargin sMG = .Gutter .Orientation = (.Orientation + 1) Mod 2 .TopMargin = sMT .BottomMargin = sMB .RightMargin = sMR .LeftMargin = SML .Gutter = sMG End With End With End Sub For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks. I'll give that a try.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
keep same view when changing from landscape to portrait | rich_cirillo | Word | 1 | 05-12-2015 09:00 AM |
portrait and landscape in a single file | brendanflanagan | Word | 1 | 03-05-2015 06:26 PM |
Large number of landscape pages within a portrait doc--do I have to textbox by hand every landscape? | mlkmnsgrl | Word | 7 | 01-05-2015 05:19 PM |
how to have both portrait and landscape? | eidius | Word | 4 | 07-01-2013 08:01 PM |
Landscape and Portrait together? | manyrains | Word | 1 | 11-26-2009 12:05 PM |