Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2018, 10:55 AM
Nikko963 Nikko963 is offline Margins in mixed portrait/landscape doc Windows 7 64bit Margins in mixed portrait/landscape doc Office 2016
Novice
Margins in mixed portrait/landscape doc
 
Join Date: Mar 2018
Posts: 12
Nikko963 is on a distinguished road
Question 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?
Reply With Quote
  #2  
Old 09-19-2018, 04:23 PM
macropod's Avatar
macropod macropod is offline Margins in mixed portrait/landscape doc Windows 7 64bit Margins in mixed portrait/landscape doc Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
in the document's template and, perhaps, assign it to a shortcut key.

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]
Reply With Quote
  #3  
Old 10-03-2018, 09:56 AM
Nikko963 Nikko963 is offline Margins in mixed portrait/landscape doc Windows 7 64bit Margins in mixed portrait/landscape doc Office 2016
Novice
Margins in mixed portrait/landscape doc
 
Join Date: Mar 2018
Posts: 12
Nikko963 is on a distinguished road
Default

Thanks. I'll give that a try.
Reply With Quote
Reply



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
Margins in mixed portrait/landscape doc portrait and landscape in a single file brendanflanagan Word 1 03-05-2015 06:26 PM
Margins in mixed portrait/landscape doc 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
Margins in mixed portrait/landscape doc Landscape and Portrait together? manyrains Word 1 11-26-2009 12:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft