Share via

Using Quick Parts to create complete pages

Anonymous
2013-10-15T18:49:24+00:00

I thought that Quick Parts in Word 2010 was going to solve a number of problems developing electronic forms where pages go from portrait to landscape.

I wanted to set up a Quick Part that had the Header and Footer set up for both portrait and landscape for our engineering documents or basically, any form that shifted from portrait to landscape orientation and needed the header/footer positions to change with the orientation.  I wanted to set up a Gallery whereby the users could select the specific oriented page with appropriate header/footer for their document and insert it in it's own page.  While you can select all elements on the text layer to create a cover page and either an Autotext entry or Quick Part, you can only select either the header OR the footer on that layer, thereby making it impossible, except thru a macro, to add a new page to a document intact from the Gallery.

Does anyone have any ideas how this can be accomplished?  Is there any other way to do this other than creating a macro, tied to either a button in the QAT or Key Combo?

What I have tried so far.... For each of the Header/Footer orientations, I first created the header/footer I wanted to use with all elements including cross references and page fields, then created and ran a macro that:  1.  Inserted Section Break Next Page 2.  Changed Orientation 3. Opened Header/Footer 4. Selected Header  5. Inserted Quick Part formatted Header 6. Switched to Footer   7.  Inserted Quick Part formatted Footer  8. Closed Header/Footer.

This created a usable page but it seemed a messy way to just add a page, in a specific orientation with specific headers/footers.

Is there an easier way?

Regards - Lenny33

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Charles Kenyon 167.1K Reputation points Volunteer Moderator
2013-10-16T04:23:48+00:00

You are welcome. It took me a while to grasp the concept, myself. In the screenshots shown the margins are set at 1" all around. I'm not sure what the auto-adjusting margins would be. These Alignment tabs first were introduced with Word 2007 and Suzanne Barnhill got me to look at them a couple of months ago.

I just added the screenshots to my chapter on sections, headers and footers in Word 2007-2013. It is easier to get the concept across with them, I hope.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Charles Kenyon 167.1K Reputation points Volunteer Moderator
2013-10-15T22:03:56+00:00

Hi,

What I am saying is that many times, perhaps not in your instance, you can set up a header and footer that work equally well in a portrait or landscape orientation, unless you have different information in the headers and footers depending on the orientation.

Headers and footers are Section (not page) components. Sections / Headers and Footers in Microsoft Word 2007-2013. It appears you understand this but I am uncertain when you talk about inserting a page with appropriate headers/footers.

You can include information from a page in a header/footer displayed with that page using the StyleRef Field.

AutoText is a type of quickpart.

You can create multiple header/footer quickparts and store them in your document template. You could have a macro in the template that selects a particular quickpart.

You can have a custom set of QAT buttons attached to the template that call on various (informatively-named) macros.

You cannot have a gallery that includes an entire page with headers/footers. You can have a gallery that has page text. You can include an associated header in the header gallery for your template. You can include an associated footer in the footer gallery for your template. You could have macros that start a new section with a new page and insert all three in the appropriate locations.

You could customize the ribbon for your template to have custom buttons on the ribbon with help text in screen tips. Customize the Ribbon (It doesn't take rocket science)

Before you go overboard, though, I would strongly recommend taking another look at the alignment tabs and StyleRef fields. Again, the alignment tabs align to the page margins, not to the horizontal distance across the page. Generally, the page margins on portrait and landscape pages give good markers for where you want your header/footer elements.

The picture below shows traditional center and right tabs set for a portrait layout in a page set for landscape display. Immediately below are corresponding alignment tabs (center and right) on the same page. In the portrait orientation, the tabs are at the same position but when the orientation is switched, the alignment tabs set to the new orientation automatically. This is in a page with 1" margins all around.

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Charles Kenyon 167.1K Reputation points Volunteer Moderator
    2013-10-15T22:29:56+00:00

    Here are better screen shots of the alignment tabs in action.

    Portrait Orientation

    Same text in Landscape Orientation

    You will probably have to view the pictures directly to get the full benefit.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-10-15T21:03:16+00:00

    Charles.... sorry but my question does not pertain to Aligning elements in the header/footer, rather setting up the entire header/footer as Quick Parts and using vb to combine and add the elements so when the user clicks on a custom button, they can add a portrait or landscape page in the existing document with the correct header and footer in place.

    Thank you for responding.... regards, Lenny33

    Was this answer helpful?

    0 comments No comments
  3. Charles Kenyon 167.1K Reputation points Volunteer Moderator
    2013-10-15T20:07:13+00:00

    Look into the Alignment Tab which is on the Header/Footer Tools ribbon. It allows you to position elements in relationship to the page margins rather than to particular spots. You can left align, center align and right align. These alignment tabs are independent of paragraph and style settings. This may do what you want.

    http://www.addbalance.com/usersguide/basic_formatting.htm#Tabs

    Use Alignment Tab Feature to set tabs relative to margins

    Was this answer helpful?

    0 comments No comments