![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm working with a boilerplate report "template" that uses portrait orientation by default but might have a section added that uses landscape orientation. When a landscape section is added, I need a way for the right margin to adjust automatically so the right-aligned page number and logo are always the same distance from the right edge of the document. Note: I put template in quotation marks because we don't use it as a true template as Microsoft designed. It's really just a boilerplate macro-enabled document that various departments use as a basis for their customized documents. |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
"Why on Earth are they not using a real template?" -- For various security-related reasons, the company has an unusual configuration of Office products, which limits certain functions. Also, I'm not sure the corporate decision makers are familiar with how templates are supposed to work.
|
|
#4
|
|||
|
|||
|
The right-alignment tab doesn't automatically move to the right edge on landscape pages in my document.
|
|
#5
|
|||
|
|||
|
What is it aligned to? Page Margin or Paragraph Indent?
Margins and Indents - Ribbon |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
That sounds as though you’ve used a right-aligned tab rather than an alignment tab. Alignment tabs are only available in headers and footers, can’t be applied as part of a style, and are accessed from the header/footer tab of the ribbon, which is visible only when editing a header or footer.
|
|
#8
|
||||
|
||||
|
I do this by putting the header and footer content into a table. The table can be configured to be 100% width which allows it to adapt automatically to different page widths. You might want two or three columns in that table depending on whether you need left and right alignment or left/centre/right alignment. The first column gets content left aligned, the last column gets content right aligned.
The trick is to remember that the 'link to previous' setting overrides the width of the table so if you change from portrait to landscape (or vice versa) then you can duplicate the header content by turning on the 'link to previous' but then you need to turn it off again to allow the table to adapt to the different width.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#9
|
||||
|
||||
|
Quote:
I still think that tables are useful especially where logos are involved to give us more control on vertical alignment of left/right sides but that alignment tab is going to be handy for sure. Thanks for teaching me something new today
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#10
|
|||
|
|||
|
Andrew: Alignment Tabs
Introduced with the Ribbon in Office 2007. Only available in headers or footers unless added to QAT or keyboard shortcut. It shows up as Insert Alignment Tab. Last edited by Charles Kenyon; 10-18-2022 at 10:38 AM. |
|
#11
|
|||
|
|||
|
Thank you, Charles Kenyon and Italophile. Much appreciated.
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Word page orientation changes not affecting printed document | nsales | Word | 2 | 09-19-2019 12:29 PM |
| Watermark on every page of document which has different first/odd/even page headers | shanlau | Word VBA | 1 | 12-10-2018 09:10 PM |
| Page borders vs Orientation | Ineedcoffee | Word | 5 | 12-06-2011 12:52 PM |
| varying orientation on a multi-page document??? | imimin | Word | 1 | 08-24-2009 12:12 PM |
| Page Orientation | bubbelytoes | Word | 1 | 09-06-2006 12:41 PM |