<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">The Microsoft Office Word Team's Blog</title><subtitle type="html">All things Microsoft Office Word, from the Word team.</subtitle><id>http://blogs.msdn.com/microsoft_office_word/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/microsoft_office_word/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-11-17T19:36:00Z</updated><entry><title>Multilevel Lists vs List Styles</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/06/25/multilevel-lists-and-list-styles.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/06/25/multilevel-lists-and-list-styles.aspx</id><published>2009-06-25T20:43:00Z</published><updated>2009-06-25T20:43:00Z</updated><content type="html">&lt;H1&gt;Introduction &lt;/H1&gt;
&lt;P&gt;A common question that comes up is about the difference between multilevel lists and list styles. Stuart discussed these two list types in his post &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/03/08/the-many-levels-of-lists.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/03/08/the-many-levels-of-lists.aspx"&gt;The Many Levels of Lists&lt;/A&gt;. What I hope to do in this blog post is an in-depth look at the similarities and differences between these two concepts. &lt;/P&gt;
&lt;H1&gt;Quick Overview &lt;/H1&gt;
&lt;P&gt;An easy way to look at this would be to think of list styles as an improved version of multilevel lists, since both are ways to define all nine levels of a list in one go. So, why do we need both? &lt;/P&gt;
&lt;P&gt;Well, a multilevel list is a feature that can be found in Word documents dating back to very early versions of Office. In order for these documents to render correctly in newer version of Office, this feature is maintained and made to work alongside new Word features. The disadvantage, as Stuart mentioned, is that multilevel lists could not be named, modified or easily exported to other documents and templates. &lt;/P&gt;
&lt;P&gt;List styles were introduced in Office 2007 to give lists the same advantages as other styles (paragraph and characters styles), which included: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Ability to modify the existing definition &lt;/LI&gt;
&lt;LI&gt;Ability to share the your perfectly crafted style with other documents &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;By allowing the list style to be named, Word is now able to better keep the definition of the list separate from the actual instance of the list. That way a single list style can be referenced by multiple lists and each list can have its own individual tweaks if necessary. &lt;/P&gt;
&lt;H1&gt;More Details &lt;/H1&gt;
&lt;H2&gt;Defining a New List &lt;/H2&gt;
&lt;P&gt;Let's start by going through the dialog used to create and modify these two list types. As a quick review, you can create a new multilevel style or a list style by going to the third numbering button on the Home tab. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL1.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL1.png"&gt; &lt;/P&gt;
&lt;P&gt;Other than the differences mentioned above, the features available for both types of lists are identical (as illustrated by the diagrams below). When creating a new multilevel list, you are thrown directly into a dialog that shows all of your available options for customizing the list. This dialog can be a bit daunting, so for list styles in Office 2007, we followed the example set by the other styles and simplified the dialog you are first shown. And also like the other styles, we list all of your customization options under the "Format" button. Once you select "Numbering…" under this button, you are presented with all of the same, advanced options as multilevel lists. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 318px"&gt;
&lt;COL style="WIDTH: 320px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="BACKGROUND: #4f81bd"&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;Multilevel List&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;List Style&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL2.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL2.png"&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL3.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL3.png"&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H2&gt;Sharing Lists with Other Documents &lt;/H2&gt;
&lt;P&gt;Another strong point of list styles is the ability to share them across documents. This way, once you've spent the time customizing the lists in your document, you can re-use the style in other documents you create. The easiest way to share the "formatting" of a multilevel list is to copy a list from one document to anther and then modified the items of the list to suit the needs of the new document. With list styles, you can transfer them quickly to a new document the same way as other styles: through the Styles Organizer. This way only the formatting you want is transferred not the unnecessary content. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 233px"&gt;
&lt;COL style="WIDTH: 405px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="BACKGROUND: #4f81bd"&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;Multilevel List&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;List Style&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL4.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL4.png"&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL5.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL5.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H2&gt;Saving to DOCX &lt;/H2&gt;
&lt;P&gt;I'm not going to go through the full details of how bullets and numbers are represented in OOXML (although, if you are interested, you can find the ISO standard here: &lt;A href="http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html" mce_href="http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html"&gt;http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html&lt;/A&gt; ) &lt;/P&gt;
&lt;P&gt;Simply put, the xml parts, within the document package, which are most important to multilevel lists and list styles, are document.xml and numbering.xml. Numbering.xml stores the actual definition of the list, while the document.xml part contains the main document text and references the numbering.xml part for the information on how the list should be formatted. The underlying structures of a multilevel list vs. a list style are quite similar. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The way the document.xml part stores the list text and references the list definitions is identical. &lt;/LI&gt;
&lt;LI&gt;The numbering.xml part is also quite similar with the main difference in the being the additional of an element in the list style which stores the name of the style. &lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 317px"&gt;
&lt;COL style="WIDTH: 321px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="BACKGROUND: #4f81bd"&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;Multilevel List&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: 0.5pt solid; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="COLOR: white"&gt;&lt;STRONG&gt;List Style&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid"&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL6.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL6.png"&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-BOTTOM: 0.5pt solid; BORDER-LEFT: medium none; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: medium none; BORDER-RIGHT: 0.5pt solid" vAlign=bottom&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/062509_2043_MultilevelL7.png" mce_src="http://stunna42.members.winisp.net/062509_2043_MultilevelL7.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;You can also tell, from the sample above , that list styles grew out of multilevel lists by the fact that the &amp;lt;w:multiLevelType&amp;gt; element for both constructs are the same. &lt;/P&gt;
&lt;H1&gt;Conclusion &lt;/H1&gt;
&lt;P&gt;Hopefully, this blog post gave you a better understanding of these two list types and why they both exist in Word today. If you have any other questions about the similarities/differences, please let me know and I'll try to pull together another blog post with the answers.&lt;/P&gt;
&lt;P&gt;- Amani&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804245" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="legal scenario" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/legal+scenario/default.aspx" /><category term="bullets and numbering" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/bullets+and+numbering/default.aspx" /><category term="Word Tech Details" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+Tech+Details/default.aspx" /></entry><entry><title>Office Palooza</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/06/02/office-palooza.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/06/02/office-palooza.aspx</id><published>2009-06-02T20:09:00Z</published><updated>2009-06-02T20:09:00Z</updated><content type="html">&lt;P&gt;Hello! My name is Stephen Oliver and I'm a programming writer at Microsoft. From time-to-time, I'll post Office developer-oriented tips—specifically around Word. &lt;/P&gt;
&lt;P&gt;Today's post is simply to alert you to a great resource for sharpening your Office automation skills—&lt;A href="http://blogs.msdn.com/officepalooza/pages/9519525.aspx" mce_href="http://blogs.msdn.com/officepalooza/pages/9519525.aspx"&gt;Office Palooza&lt;/A&gt; . Office Palooza was a two-week event (April 20 – May 1, 2009) but the content that came out of it is an excellent store of tips, How Tos, and even full-scale solutions for automating Office applications. &lt;/P&gt;
&lt;P&gt;Office Palooza targeted "advanced business users" (most people call them "power users"); that is, people who have a great deal more than a beginning knowledge of the Office applications (like Word!) but aren't professional programmers. So even if all you've ever done with Office automation is record a macro in Word, this is just the place for you! If you look through the list of articles, blog posts, "How To" videos and book excerpts, you'll find things like: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/cc501317(office.11).aspx" mce_href="http://msdn.microsoft.com/en-us/library/cc501317(office.11).aspx"&gt;Customizing the Word 2007 Fluent Ribbon is as Easy as 1-2-3&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb264571.aspx" mce_href="http://msdn.microsoft.com/en-us/library/bb264571.aspx"&gt;Building Word 2007 Document Templates Using Content Controls [VH2]&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb410041.aspx" mce_href="http://msdn.microsoft.com/en-us/library/bb410041.aspx"&gt;Creating a Custom Building Block Gallery for Word 2007&amp;nbsp; [VH2]&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://msdn.microsoft.com/en-us/magazine/cc507643.aspx" mce_href="http://msdn.microsoft.com/en-us/magazine/cc507643.aspx"&gt;From VBA Macro to Word Add-in&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;…and many other topics. &lt;/P&gt;
&lt;P&gt;But don't just take my word for it. Stop by and check out the Office Palooza &lt;A href="http://blogs.msdn.com/officepalooza/pages/9556061.aspx" mce_href="http://blogs.msdn.com/officepalooza/pages/9556061.aspx"&gt;content&lt;/A&gt; for yourself!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9686720" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word Tech Details" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+Tech+Details/default.aspx" /></entry><entry><title>Quick Tip: Filler Text</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/05/12/quick-tip-filler-text.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/05/12/quick-tip-filler-text.aspx</id><published>2009-05-12T21:39:00Z</published><updated>2009-05-12T21:39:00Z</updated><content type="html">&lt;P&gt;It's super easy to put generic text into a Word document for all of your filler text needs (especially useful during demos and presentations). Just start a new paragraph and: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Type "=rand()" and press Enter for three paragraphs of text &lt;/LI&gt;
&lt;LI&gt;Type "=lorem()"and press Enter for three paragraphs of random characters that approximate a normal distribution of letters know as &lt;A href="http://www.lipsum.com/" mce_href="http://www.lipsum.com/"&gt;Lorem Ipsum&lt;/A&gt; &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Example of the result of "=rand()" &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example of "=lorem()" &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede. Mauris et orci. &lt;/P&gt;
&lt;H1&gt;More/Less Words and More/Less Paragraphs &lt;/H1&gt;
&lt;P&gt;If you'd like more or less than three paragraphs, you can get specific like this: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;=rand(insert the number of paragraphs, insert the number of sentences) &lt;/LI&gt;
&lt;LI&gt;=lorem(insert the number of paragraphs, insert the number of sentences) &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;For example, "=lorem(1,6)" gives you: &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And "=rand(1,6)" gives you: &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. &lt;/P&gt;
&lt;P&gt;If you only include one number between the parentheses, that number will be the number of paragraphs, and each of the paragraphs will have five sentences in them. So "=rand(1)" does this: &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. &lt;/P&gt;
&lt;P&gt;Lastly, if you can't get enough filler text, know that you will max out at about 200 pages of filler text per "insertion." For example, you can type "=lorem(111,111)" for 111 paragraphs with 111 sentences each, or 129 pages of filler, but you cannot type "=lorem(99999999999999999, 99999999999999999)" on your least favorite co-worker's computer to bring their CPU to its knees. &lt;SPAN style="FONT-FAMILY: Wingdings"&gt;J&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; - Jonathan Bailor &lt;/P&gt;
&lt;P&gt;PS In the interest of completeness, you can also use "=rand.old()" to insert an assorted number of sentences and paragraphs of "The quick brown fox jumps over the lazy dog." &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9608256" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word tips and tricks" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+tips+and+tricks/default.aspx" /></entry><entry><title>Bibliography &amp; Citations 102 – Building Custom styles</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/04/29/bibliography-citations-102-building-custom-styles.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/04/29/bibliography-citations-102-building-custom-styles.aspx</id><published>2009-04-30T00:12:00Z</published><updated>2009-04-30T00:12:00Z</updated><content type="html">&lt;P&gt;My name is Nathan Kwan. I am a PM intern on the Microsoft Word team. My internship started in early January and is sadly coming to an end at the end of April. I'm a 4&lt;SUP&gt;th&lt;/SUP&gt; year student at the University of Waterloo working towards my Software Engineering degree. &lt;/P&gt;
&lt;P&gt;When I started on the team, I was given the bibliography feature. Being a student myself, I am a fan, so I was pretty excited to dig into it. &lt;/P&gt;
&lt;H2&gt;What will this post cover? &lt;/H2&gt;
&lt;P&gt;In &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx"&gt;Amani's last post&lt;/A&gt;, she showed you how to setup and build a simple bibliography style. We learned that bibliography styles in Word are XSLTs. We also found that we could drop our own custom styles in &lt;EM&gt;C:\Program Files\Microsoft Office\Office12\Bibliography\Style and Word will display them&lt;/EM&gt;. &lt;/P&gt;
&lt;P&gt;Today, I'm going to be expanding on &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx"&gt;Amani's post&lt;/A&gt; to show you how to build more complex styles. One of the issues that "complicates" bibliography styles is that they often need to have a significant amount of conditional logic built into them. For example, if the date is specified we need to show the date, whereas if the date is not specified we may need to use an abbreviation to indicate that there is no date for that source. &lt;/P&gt;
&lt;P&gt;For a more specific example, in the APA style, if a date is not specified for a website source, then the abbreviation n.d. is used to denote no date…and the style should do this automatically. The example is shown below: &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;&lt;STRONG&gt;APA website source with no date entered: &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Kwan, N. (n.d.). Retrieved from www.microsoft.com &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;&lt;STRONG&gt;APA website source with date entered: &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;Kwan, N. (2006, Jan 18). Retrieved from www.microsoft.com &lt;/P&gt;
&lt;P&gt;As you can see, what is displayed is conditional on the data entered. &lt;/P&gt;
&lt;P&gt;Unfortunately, there is not enough space or time in this blog to go through each and every rule that a new style would need, but I will provide a foundation for you to create new styles by showing you step by step how to implement a single rule that leverages conditional logic. &lt;/P&gt;
&lt;P&gt;The rule I will be showing is one of the most common rules. The output of virtually every style needs to change depending on whether you have a "Corporate Author" or a "Normal Author". &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/043009_0012_Bibliograph1.png" mce_src="http://stunna42.members.winisp.net/043009_0012_Bibliograph1.png"&gt; &lt;/P&gt;
&lt;P&gt;I'm going to show you how to display a corporate author if the corporate author is specified and display a normal author if the corporate author is not specified. &lt;/P&gt;
&lt;H2&gt;Overview of Solution &lt;/H2&gt;
&lt;P&gt;To display a corporate author only if it is filled in, we need to take the following actions: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a variable to count the number of corporate authors in the citation section of the code &lt;/LI&gt;
&lt;LI&gt;Display the corporate author in the citation if the corporate author is filled in. Display the normal author in the citation if the corporate author is not filled in. &lt;/LI&gt;
&lt;LI&gt;Add a variable to count the number of corporate authors in the bibliography section of the code &lt;/LI&gt;
&lt;LI&gt;Display the corporate author in the bibliography if the corporate author is filled in. Display the normal author in the bibliography if the corporate author is not filled in. &lt;/LI&gt;&lt;/OL&gt;
&lt;H2&gt;Getting Started &lt;/H2&gt;
&lt;P&gt;&lt;BR&gt;Let's start by changing the citation. This is the code for citations from last time: &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the output of the Citation &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:template match="b:Citation/b:Source[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;html xmlns="http://www.w3.org/TR/REC-html40"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 21pt"&gt;&amp;lt;body&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the output format as (Author, Year)&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;(&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Year"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;)&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/body&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;H3&gt;Step 1: Define a new variable in the citation section to count the number of Corporate Authors &lt;/H3&gt;
&lt;P&gt;We'll need to be declaring a new variable to help us determine whether a corporate author is available. This variable is a count on the number of times the corporate author field exists in our source. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;&amp;lt;!-- Defines the output of the Citation --&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;html xmlns="http://www.w3.org/TR/REC-html40"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 7pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Count the number of Corporate Authors (can only be 0 or 1)&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:variable name="cCorporateAuthors"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="count(b:Author/b:Author/b:Corporate)" /&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:variable&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H3&gt;Step 2: Check to see whether the corporate author has been filled in &lt;/H3&gt;
&lt;P&gt;Now that we have this new variable, we need to check if the corporate author has been filled in. We can do this by checking if the count on corporate authors is not zero. If a corporate author exists, display it. If it does not exist, display the normal author. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:text&amp;gt;(&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;when the corporate author exists display the corporate author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:when test ="$cCorporateAuthors!=0"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:Corporate"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:when&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author does not exist, display the normal author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;/xsl:choose&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;.......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;Now that we made the change for citations, let's make the change for our bibliography. Here's the bibliography section from the original post: &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!-- &lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Defines the output format for a simple Book (in the Bibliography) with important fields defined&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;--&amp;gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl: template match="b:Source[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;!--Label the paragraph as an Office Bibliography paragraph --&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;p&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:First"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:text&amp;gt;. (&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="b:Year"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:text&amp;gt;). &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;i&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H3&gt;Step 3: Define a new variable in the bibliography section &lt;/H3&gt;
&lt;P&gt;Once again, let's start by adding a counting variable. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;!--&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt"&gt;Defines the output format for a simple Book (in the Bibliography) with important fields defined&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;xsl: template match="b:Source[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;! --&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt"&gt;Count the number of Corporate Authors (can only be 0 or 1)&lt;/SPAN&gt;--&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:variable name="cCorporateAuthors"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:value-of select="count(b:Author/b:Author/b:Corporate)" /&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:variable&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H3&gt;Step 4: Check to see whether the corporate author has been filled in &lt;/H3&gt;
&lt;P&gt;Now let's add the check to see if a corporate author exists. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:variable name="cCorporateAuthors"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:value-of select="count(b:Author/b:Author/b:Corporate)" /&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;/xsl:variable&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;p&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;when the corporate author exists display the corporate author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:when test ="$cCorporateAuthors!=0"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:Corporate"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;. (&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/xsl:when&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author does not exist, display the normal author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt; --&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:First"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;. (&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:choose&amp;gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Consolas; COLOR: green"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;H2&gt;End Result &lt;/H2&gt;
&lt;P&gt;Now when we use a corporate author, it displays correctly in both our citation and bibliography! &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/043009_0012_Bibliograph2.png" mce_src="http://stunna42.members.winisp.net/043009_0012_Bibliograph2.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/043009_0012_Bibliograph3.png" mce_src="http://stunna42.members.winisp.net/043009_0012_Bibliograph3.png"&gt; &lt;/P&gt;
&lt;P&gt;This technique can be extended to perform any conditional statement we may need in our style. &lt;/P&gt;
&lt;P&gt;Here's the final code that was used: &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse; BACKGROUND: #eeece1" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="HEIGHT: 359px"&gt;
&lt;TD style="BORDER-BOTTOM: black 0.5pt solid; BORDER-LEFT: black 0.5pt solid; PADDING-LEFT: 7px; PADDING-RIGHT: 7px; BORDER-TOP: black 0.5pt solid; BORDER-RIGHT: black 0.5pt solid"&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; List of the external resources that we are referencing &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; When the bibliography or citation is in your document, it's just HTML &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:output method="html" encoding="us-ascii"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; match the root element, and dispatch to its children &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="/"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:apply-templates select="*" /&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;set an optional version number for this style&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:version"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:text&amp;gt;2006.5.07&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the name of the style in the References dropdown &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:StyleName"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:text&amp;gt;Simple Book Style&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Specifies which fields should appear in the Create Source dialog when in a collapsed state (The Show All Bibliography Fieldscheckbox is cleared) &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:GetImportantFields[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;b:ImportantFields&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;b:Author/b:Author/b:NameList&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;b:Title&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;b:Year&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;b:City&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;b:Publisher&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/b:ImportantField&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/b:ImportantFields&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;!--&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt"&gt;Defines the output format for a simple Book (in the Bibliography) with important fields defined&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;--&amp;gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:Source[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt;Count the number of Corporate Authors (can only be 0 or 1)&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;xsl:variable name="cCorporateAuthors"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="count(b:Author/b:Author/b:Corporate)" /&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/xsl:variable&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;!-&lt;/SPAN&gt;-&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 10pt"&gt;Label the paragraph as an Office Bibliography paragraph&lt;/SPAN&gt; &lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt;--&amp;gt;&lt;/SPAN&gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;p&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:when test ="$cCorporateAuthors!=0"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author exists display the corporate author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:Corporate"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:text&amp;gt;. (&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;/xsl:when&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author does not exist, display the normal author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:First"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:text&amp;gt;. (&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;/xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Year"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;). &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;i&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:value-of select="b:Title"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;. &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/i&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:City"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;: &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:value-of select="b:Publisher"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:text&amp;gt;.&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/p&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the output of the entire Bibliography &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:Bibliography"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;html xmlns="http://www.w3.org/TR/REC-html40"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;body&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:apply-templates select ="*"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;/xsl:apply-templates&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/body&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt;&lt;SPAN style="FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 10pt"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the output of the Citation &lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="b:Citation/b:Source[b:SourceType = 'Book']"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;html xmlns="http://www.w3.org/TR/REC-html40"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;xsl:variable name="cCorporateAuthors"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:value-of select="count(b:Author/b:Author/b:Corporate)" /&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/xsl:variable&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;body&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; Defines the output format as (Author, Year)&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;(&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author exists display the corporate author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:when test ="$cCorporateAuthors!=0"&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 86pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:Corporate"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;/xsl:when&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&lt;SPAN style="FONT-FAMILY: Courier New; FONT-SIZE: 10pt"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;!--&lt;/SPAN&gt;&lt;SPAN style="COLOR: green"&gt; when the corporate author does not exist, display the normal author&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 86pt"&gt;&amp;lt;xsl:value-of select="b:Author/b:Author/b:NameList/b:Person/b:Last"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 72pt"&gt;&amp;lt;/xsl:otherwise&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;/xsl:choose&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;, &amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:value-of select="b:Year"/&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 57pt"&gt;&amp;lt;xsl:text&amp;gt;)&amp;lt;/xsl:text&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 43pt"&gt;&amp;lt;/body&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 28pt"&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;/xsl:template&amp;gt; &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 14pt"&gt;&amp;lt;xsl:template match="text()" /&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;In conclusion, we built off of &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/12/14/bibliography-citations-1011.aspx"&gt;Amani's post&lt;/A&gt; to build a more complex style using conditional statements. The unfortunately reality is that bibliography styles are complex, but as this example shows, implementing the individual rule does not have to be. &lt;/P&gt;
&lt;P&gt;-Nathan&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9577353" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="citation &amp;amp; bibliography tools " scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/citation+_2600_amp_3B00_+bibliography+tools+/default.aspx" /></entry><entry><title>Word 2007 Vodcast</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/04/14/word-2007-vodcast.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/04/14/word-2007-vodcast.aspx</id><published>2009-04-14T17:38:00Z</published><updated>2009-04-14T17:38:00Z</updated><content type="html">&lt;P&gt;Quick FYI. Frequent Word Team Blog blogger Joannie Stangeland started up a vodcast series called &lt;A href="http://www.microsoft.com/feeds/office/en-us/WritersGuide.xml" mce_href="http://www.microsoft.com/feeds/office/en-us/WritersGuide.xml"&gt;&lt;EM&gt;A Writer's Guide to Microsoft Office&lt;/EM&gt;&lt;/A&gt;. The vodcast is currently stepping through the scenario of creating a manuscript in Word 2007 (how to pull together your separate files, add a table of contents, etc), and has a lot of cool stuff in store.&amp;nbsp; Load it up on your MP3 player and enjoy. &lt;/P&gt;
&lt;P&gt;-Jonathan Bailor (MS)&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9548855" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="news" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/news/default.aspx" /></entry><entry><title>Word Most Valuable Professionals</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/04/02/word-most-valuable-professionals.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/04/02/word-most-valuable-professionals.aspx</id><published>2009-04-02T23:51:00Z</published><updated>2009-04-02T23:51:00Z</updated><content type="html">&lt;P&gt;Just wanted to say a quick and public thank you to the amazing individuals who added a huge amount of valuable feedback at our recent &lt;A href="http://mvp.support.microsoft.com/gp/MVPsummit" mce_href="http://mvp.support.microsoft.com/gp/MVPsummit"&gt;MVP Summit&lt;/A&gt;. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/040209_2350_WordMostVal1.png" mce_src="http://stunna42.members.winisp.net/040209_2350_WordMostVal1.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR: black"&gt;Standing (L-R)&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="https://mvp.support.microsoft.com/profile/Melton" mce_href="https://mvp.support.microsoft.com/profile/Melton"&gt;Beth Melton&lt;/A&gt;&lt;SPAN style="COLOR: black"&gt;, &lt;/SPAN&gt;&lt;A href="http://sbarnhill.mvps.org/" mce_href="http://sbarnhill.mvps.org/"&gt;Suzanne Barnhill&lt;/A&gt;&lt;SPAN style="COLOR: black"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="http://jay-freedman.info/" mce_href="http://jay-freedman.info/"&gt;Jay Freedman&lt;/A&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR: black"&gt;Sitting (L-R)&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="http://www.agentjim.com/MVP/welcome.htm" mce_href="http://www.agentjim.com/MVP/welcome.htm"&gt;Jim Gordon&lt;/A&gt;&lt;SPAN style="COLOR: black"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="http://www.shaunakelly.com/word/index.html" mce_href="http://www.shaunakelly.com/word/index.html"&gt;Shauna Kelly&lt;/A&gt;&lt;SPAN style="COLOR: black"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="https://mvp.support.microsoft.com/profile=85C20F41-C1E3-4DAC-9F7F-41DAF5193F2E" mce_href="https://mvp.support.microsoft.com/profile=85C20F41-C1E3-4DAC-9F7F-41DAF5193F2E"&gt;Joanne Orzech&lt;/A&gt;&lt;SPAN style="COLOR: black"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;A href="http://www.wordarticles.com/" mce_href="http://www.wordarticleS.com "&gt;Tony Jollans&lt;/A&gt;&lt;SPAN style="COLOR: #1f497d"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The amount of knowledge and insight these guys and gals bring to the table is always impressive. &lt;/P&gt;
&lt;P&gt;And they are all over the Word &lt;A href="http://www.microsoft.com/office/community/en-us/flyoutoverview.mspx" mce_href="http://www.microsoft.com/office/community/en-us/flyoutoverview.mspx"&gt;discussion groups&lt;/A&gt; sharing their knowledge with the world. So feel free to drop in and drop them a Word question or two. &lt;/P&gt;
&lt;P&gt;-Jonathan Bailor (MS)&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9529922" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="personal" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/personal/default.aspx" /></entry><entry><title>How to Freeze Part of Your Word Document</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/03/25/how-to-freeze-part-of-your-word-document.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/03/25/how-to-freeze-part-of-your-word-document.aspx</id><published>2009-03-26T01:22:00Z</published><updated>2009-03-26T01:22:00Z</updated><content type="html">&lt;P&gt;I'm a big fan of Excel's ability to freeze rows and columns. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze1.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze1.png"&gt; &lt;/P&gt;
&lt;P&gt;If I'm looking at a large set of data, I can keep some of the rows and columns fixed and scroll though the rest. After all, this is pretty much useless: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze2.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze2.png"&gt; &lt;/P&gt;
&lt;P&gt;…while this gives me the context I need to make sense of the data: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze3.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze3.png"&gt; &lt;/P&gt;
&lt;P&gt;Now what if I have a similar situation in Word? Say that I have a figure on page one and need to write about it on page three. Do I need to scroll up and down over and over? No. Do I need to copy and paste the figure into another document and do a little split screen dance? No. I just "freeze" the part of the document with the figure. &lt;/P&gt;
&lt;P&gt;Here's a document with a figure near the top of page one: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze4.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze4.png"&gt; &lt;/P&gt;
&lt;P&gt;Click on the View Tab, click Split, and put the "splitter" under wherever you want to freeze (&lt;A href="http://www.woopid.com/video/1222/Split-a-Document" mce_href="http://www.woopid.com/video/1222/Split-a-Document"&gt;Video&lt;/A&gt;). &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze5.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze5.png"&gt; &lt;/P&gt;
&lt;P&gt;Now you've got much of the same goodness that you have in Excel. You can keep the figure at the top of your screen, and scroll to wherever else you want in the bottom pane. You can change the zoom setting for each pane independently (as I did in the picture above) to give yourself more room to work. Or you can go so far as to vary the views and set one to print view and the other to web view (my personal favorite view in Word). Double click on the splitter when you are done to get rid of it. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 46pt"&gt;&lt;SPAN style="COLOR: #4f81bd"&gt;&lt;STRONG&gt;&lt;EM&gt;Advanced Tip: You can quickly access the splitter by clicking and dragging the little horizontal line above your vertical scroll bar. &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN-LEFT: 46pt"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze6.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze6.png"&gt; &lt;/P&gt;
&lt;P&gt;But now, you may be thinking "This is great, but is there a way to do this that doesn't take up as much vertical screen real-estate?" Yes. If you go back to the View tab and click the New Window button, you can open a mirror copy of your document, and do all sorts of fun stuff. For example, you could resize the windows like this: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze7.png" mce_src="http://stunna42.members.winisp.net/032609_0122_HowtoFreeze7.png"&gt; &lt;/P&gt;
&lt;P&gt;…and do a little multi-monitor emulation. Your edits will be mirrored in each window automatically, but you can manipulate their views independently. That is, the window one on the left could be at the top of the document in outline view zoomed at 100%, while the one on the right could be scrolled to your figure on page 235 in web view and zoomed to 200%. When you are done, just close either of the windows and you are back to one. &lt;/P&gt;
&lt;P&gt;Hope this helps. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Jonathan Bailor &lt;/LI&gt;&lt;/UL&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9509184" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word tips and tricks" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+tips+and+tricks/default.aspx" /></entry><entry><title>Word Throwback “Just Write” Edition</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/03/02/word-throwback-just-write-edition1.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/03/02/word-throwback-just-write-edition1.aspx</id><published>2009-03-02T20:51:00Z</published><updated>2009-03-02T20:51:00Z</updated><content type="html">&lt;P&gt;I'm a fan of &lt;A href="http://www.fourhourworkweek.com/blog/" mce_href="http://www.fourhourworkweek.com/blog/"&gt;Tim Ferris&lt;/A&gt;, author of &lt;A href="http://www.amazon.com/4-Hour-Workweek-Escape-Live-Anywhere/dp/0307353133/ref=pd_bbs_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1203371924&amp;amp;sr=8-1" mce_href="http://www.amazon.com/4-Hour-Workweek-Escape-Live-Anywhere/dp/0307353133/ref=pd_bbs_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1203371924&amp;amp;sr=8-1"&gt;&lt;EM&gt;The Four Hour Work Week&lt;/EM&gt;&lt;/A&gt;. Given this, you can imagine my horror when I found out via &lt;A href="http://vimeo.com/3184873" mce_href="http://vimeo.com/3184873"&gt;this video&lt;/A&gt; that Tim doesn't do much of his text editing in Word. &lt;/P&gt;
&lt;P&gt;Not big on documents (in the traditional sense of the word) and more about simply composing text for blogs etc, Tim is a fan of a very basic text editor that emulates the word processors of yore. Also, living his message of laser sharp focus on "major tasks," Tim is all about writing, and only writing. We're talking black screen, green text, no "distracting" buttons etc. &lt;/P&gt;
&lt;P&gt;Tim has a point. &lt;/P&gt;
&lt;P&gt;We know that some folks have a very discrete writing process. They write, then they edit, and then they review/format/finalize. If you want to "just write," and minimize any possible distractions, you've got a couple of options before ditching Word. &lt;/P&gt;
&lt;P&gt;First, here is Word 2007 (Note: I changed by Office theme to black—Office Button, Word Options, set Color Scheme to Black) &lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style="COLOR: gray"&gt;Note: all screen shots in this post are of the &lt;/SPAN&gt;&lt;SPAN style="COLOR: black; FONT-SIZE: 12pt"&gt;entire&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;&lt;SPAN style="FONT-SIZE: 12pt"&gt; &lt;/SPAN&gt;screen at 1024x768 (i.e. not just Word) &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/030209_2051_WordThrowba1.png" mce_src="http://stunna42.members.winisp.net/030209_2051_WordThrowba1.png"&gt; &lt;/P&gt;
&lt;H1&gt;Option 1: No Pages &amp;amp; No Ribbon &lt;/H1&gt;
&lt;P&gt;This is a good option if you want to "just write" right now for just this document. It's a quick and easy 80%-of-the-way-there option. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Double click on any Tab on the Ribbon. This will hide the Ribbon. &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Click the View Tab. Click Web Layout. This will turn Word into one big writing canvas. &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Right click on the Windows taskbar, click Properties, and check Auto-hide the taskbar. This will take the Windows taskbar off the screen unless you mouse over where it used to be. &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/030209_2051_WordThrowba2.png" mce_src="http://stunna42.members.winisp.net/030209_2051_WordThrowba2.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Full-screen screen capture of Word 2007 running on Windows Vista at 1024x768 &lt;/SUP&gt;&lt;/P&gt;
&lt;H1&gt;Option 2: Create the "Just Write" Template &lt;/H1&gt;
&lt;P&gt;This is your best option if you often want to "just write" often, and don't want to fiddle with Windows settings. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Open a blank document. &lt;/LI&gt;
&lt;LI&gt;Click the View Tab. Click Web Layout. &lt;/LI&gt;
&lt;LI&gt;Click on the Page Layout Tab and then Page Color. Set the Page Color to Black. This will set you up for the throwback high-contrast editing experience without touching Windows. &lt;/LI&gt;
&lt;LI&gt;Right click on the Normal Style on the Home Tab. Click Modify. Change the font to Lucida Console and make it green. This will complete your throwback high-contrast editing efforts. &lt;/LI&gt;
&lt;LI&gt;Save as a Word Template. &lt;/LI&gt;
&lt;LI&gt;Click the Office Button, Word Options, Customize, select Commands Not in the Ribbon from the drop-down on the left, select Toggle Full Screen View, and click the Add button. This will add the Toggle Full Screen View command to your Quick Access Toolbar (the thing above the Home Tab) &lt;/LI&gt;
&lt;LI&gt;Do the Windows taskbar goodness mentioned above.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Now you can simply double click on the template any time you want to "just write," click Toggle Full Screen View on your Quick Access Toolbar, and "just write." &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/030209_2051_WordThrowba3.png" mce_src="http://stunna42.members.winisp.net/030209_2051_WordThrowba3.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Full-screen screen capture of Word 2007 running on Windows Vista at 1024x768 &lt;/SUP&gt;&lt;/P&gt;
&lt;H1&gt;Option 3: Customize Windows &lt;/H1&gt;
&lt;P&gt;This is your best option if you don't want to create a template and don't mind a drastically different user interface experience in all of your applications. &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Click on the Windows Start button, Control Panel, Appearance and Personalization, Personalization, Window Color and Appearance, the "Open classic appearance properties for more color options" link, and select High Contrast #2 &lt;/LI&gt;
&lt;LI&gt;Open a Word document &lt;/LI&gt;
&lt;LI&gt;Click the View Tab. Click Web Layout. &lt;/LI&gt;
&lt;LI&gt;Click Toggle Full Screen View on your Quick Access Toolbar (see detailed steps above) &lt;/LI&gt;
&lt;LI&gt;Hide the Windows taskbar (see detailed steps above) &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/030209_2051_WordThrowba4.png" mce_src="http://stunna42.members.winisp.net/030209_2051_WordThrowba4.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Full-screen screen capture of Word 2007 running on Windows Vista at 1024x768 &lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;Tim – I love your writing and agree with you on the merits of "just writing" without any possible distractions. Give just writing in Word 2007 a shot. I think you'll like it. &lt;/P&gt;
&lt;P&gt;- Jonathan Bailor&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9455147" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word tips and tricks" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+tips+and+tricks/default.aspx" /></entry><entry><title>Advanced Comparison of Word Documents </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/02/17/test2903298.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/02/17/test2903298.aspx</id><published>2009-02-17T21:19:00Z</published><updated>2009-02-17T21:19:00Z</updated><content type="html">&lt;P&gt;[[Update:&amp;nbsp;Some readers have&amp;nbsp;reported that the images in the post are not showing-up. Here's a .docx version of the post if you are seeing that issue: &lt;A href="http://stunna42.members.winisp.net/AdvancedCompareOfWordDocuments.docx"&gt;http://stunna42.members.winisp.net/AdvancedCompareOfWordDocuments.docx&lt;/A&gt;]]&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With &lt;A href="http://money.cnn.com/2008/12/03/news/economy/treasury_mortgage_rates/index.htm" mce_href="http://money.cnn.com/2008/12/03/news/economy/treasury_mortgage_rates/index.htm"&gt;mortgage rates dipping as low as 4.5%,&lt;/A&gt; my fiancée and I have been doing a bit of refinancing comparison shopping. And in this economy we had to make sure our bases were covered. And covering our bases was a lot easier by comparing the myriad versions of the refinancing documents in good 'ole Word 2007. So let's build off my &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/08/06/comparing-and-combining-documents.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/08/06/comparing-and-combining-documents.aspx"&gt;previous post on Compare&lt;/A&gt;, and get down into the details that will save you quite a bit of time and effort the next time you need to deeply understand the difference between two documents. &lt;/P&gt;
&lt;P&gt;I'm assuming that you know how to start a document comparison in Word 2007 (or that you will now read &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/08/06/comparing-and-combining-documents.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/08/06/comparing-and-combining-documents.aspx"&gt;my previous post&lt;/A&gt; that talks about how to do it), so let's talk about the daunting dialog you see once you have started your comparison: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/021709_2119_Test29032981.png" mce_src="http://stunna42.members.winisp.net/021709_2119_Test29032981.png"&gt; &lt;/P&gt;
&lt;P&gt;You'll note that, by default, all of the comparison settings are set. Let me explain why generally, and then I'll get into what each does. &lt;/P&gt;
&lt;P&gt;Generally, you can think of a check in each of these boxes as saying: "I care about changes made to [insert Comparison Setting]." This means that, by default, you are telling Word that you care about every possible change between two versions of a document. And while this is often what you want—and thus why it is the default—you may want to get fancy and uncheck some of the boxes from time to time to reduce the "noise" in the comparison. For example, it is possible that changes to the formatting, casing, spacing, and headers and footers of your document do not materially change the meaning of the document. If they don't change the meaning, you may not care about changes made to them, and you can uncheck these Comparison Settings to reduce the "noise" of the comparison. &lt;/P&gt;
&lt;P&gt;Now, on to the specifics: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Moves&lt;/STRONG&gt; – If content was copy and pasted, do you want Word to mark it as moved? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about showing moves…deletions and insertions are fine) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Comments&lt;/STRONG&gt; – If the content within a comment is changed, do you want Word to put both versions of the comment into the document? &lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;Note: We create two comments because change-tracking mark-up is not supported in Comments.&lt;/EM&gt;&lt;/SPAN&gt; &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about changes to content within comments) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Formatting&lt;/STRONG&gt; – If the formatting of content changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about formatting changes) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Case Changes&lt;/STRONG&gt; – If the casing of content changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about casing changes) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;White Space&lt;/STRONG&gt; – If the amount of white space in the document changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about white space changes) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Tables&lt;/STRONG&gt; – If the structure &lt;EM&gt;or content&lt;/EM&gt; within tables changes, do you want Word to mark that up? &lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about structural changes to tables &lt;EM&gt;or changes to text in tables&lt;/EM&gt;) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Headers and Footers&lt;/STRONG&gt; – If anything in headers or footers changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about changes in my headers and footers) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Footnotes and endnotes&lt;/STRONG&gt; – If anything in footnotes or endnotes changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about changes in my footnotes or endnotes) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Textboxes&lt;/STRONG&gt; – If anything in text boxes changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about changes in my text boxes) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;STRONG&gt;Fields&lt;/STRONG&gt; – If anything in fields changes, do you want Word to mark that up? &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;Yes = checked &lt;/LI&gt;
&lt;LI&gt;No = unchecked (I don't care about changes in my fields) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;Note: Settings that deal with the objects or actions that can exist or happen within "containers" supersede settings that deal with the "containers" themselves. Two examples: &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;Check Textboxes (container), uncheck the Formatting (something you do in a container), change the formatting in a Textbox, compare, and Word won't find any changes. The stuff you do in the container wins. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;&lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;Check Headers and Footers (container), uncheck Tables (object that can exist in a container, and also is a container itself), change the contents of a table in a Header, compare, and Word won't find any changes. The setting dealing with the object that can exist in a container (table) beats-out the container (header). &lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="COLOR: #243f60"&gt;&lt;EM&gt;In sum, the lowest level setting wins. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Now for the Show changes settings: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Show changes at…Character level&lt;/STRONG&gt;: Select this if you want "dog" vs. "dogs" to be marked-up as "dog&lt;SPAN style="COLOR: red; TEXT-DECORATION: underline"&gt;s&lt;/SPAN&gt;" &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Show changes at…Word level&lt;/STRONG&gt;: Select this if you want "dog" vs. "dogs" to be marked-up as "&lt;SPAN style="COLOR: red"&gt;&lt;SPAN style="TEXT-DECORATION: line-through"&gt;dog&lt;/SPAN&gt;&lt;SPAN style="TEXT-DECORATION: underline"&gt;dogs&lt;/SPAN&gt;&lt;/SPAN&gt;" &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Show changes in…Original document&lt;/STRONG&gt;: Select this if you want the first document you selected to get marked-up &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Show changes in…Revised document&lt;/STRONG&gt;: Select this if you want the second document you selected to get marked-up &lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Show changes in…New document&lt;/STRONG&gt;: Select this if you don't want either document to get marked-up &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;And now to ensure we don't lose sight of the forest for the trees, here again is why you care about Compare and want you'll want to use it. &lt;/P&gt;
&lt;P&gt;Don't these documents look the same? Aren't you busy? Given how similar they look and how busy you are, why not just sign the Proposed Final Version? &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 319px"&gt;
&lt;COL style="WIDTH: 319px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="BACKGROUND: black"&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px"&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;SPAN style="COLOR: white; FONT-SIZE: 10pt"&gt;&lt;STRONG&gt;Almost Final Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px"&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;SPAN style="COLOR: white; FONT-SIZE: 10pt"&gt;&lt;STRONG&gt;Proposed Final Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px"&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/021709_2119_Test29032982.png" mce_src="http://stunna42.members.winisp.net/021709_2119_Test29032982.png"&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px"&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/021709_2119_Test29032983.png" mce_src="http://stunna42.members.winisp.net/021709_2119_Test29032983.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;Running a comparison reveals the answer in a few seconds. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR style="BACKGROUND: black"&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px" vAlign=center&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;SPAN style="COLOR: white; FONT-SIZE: 10pt"&gt;&lt;STRONG&gt;The Value of Comparing the Two Documents&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="PADDING-LEFT: 7px; PADDING-RIGHT: 7px" vAlign=center&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/021709_2119_Test29032984.png" mce_src="http://stunna42.members.winisp.net/021709_2119_Test29032984.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;Shady Lenders, LLC hates document comparison. I love document comparison, and you will too the next time you are dealing with multiple versions of the same document. &lt;/P&gt;
&lt;P&gt;- Jonathan &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9428608" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author></entry><entry><title>Managing and Administrating Building Blocks</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/02/03/managing-and-administrating-building-blocks.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/02/03/managing-and-administrating-building-blocks.aspx</id><published>2009-02-03T18:06:00Z</published><updated>2009-02-03T18:06:00Z</updated><content type="html">&lt;P&gt;In my &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx"&gt;first blog post&lt;/A&gt;, I gave an overview of some of the concepts with respect to building blocks and several readers commented with questions/concerns with regard to the management of building blocks. I felt like this was a large enough topic that it was worth dedicating a post to. There are 2 aspects of management that I will cover in this post. First, I want to share a little bit about file level management/organization of building blocks and second, I will talk about sharing building blocks with other and within an organization. &lt;/P&gt;
&lt;H1&gt;File Management &lt;/H1&gt;
&lt;P&gt;By default, there is a file called "Building Blocks.dotx" in your user application data folder (in Vista its "C:/Users/&amp;lt;&amp;lt;username&amp;gt;&amp;gt;/AppData/Roaming/Microsoft/Document Building Block"). This is where all of the built-in building blocks are saved, and it is also the default file that new building blocks are saved to. Whenever you open up one of the building block galleries, Word loads this document. As &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx"&gt;Stefan&lt;/A&gt; mentioned in his comment, there are a lot of building blocks in this file, so it's easy to get them mixed up. And, this also makes it difficult to share building blocks between users. There are a couple of different things you can do to mitigate this. One of the easiest things to do is add a new template to the document building blocks folder. This works because Word doesn't just load Building Blocks.dotx, but instead loads all the templates in the document building blocks folder. You can open a new blank document in word, then "save as" a template into that document building blocks folder. Now, when I save a building block (or auto text), I have the option of saving it to my new template. (In order to see the new template, you will need to restart Word.) Once I have done this, I can easily share my custom building blocks without sharing all the built-in content. Another hint is to use a different category for my personal building blocks. If you want this category to always appear above the built-in content, you can insert a space in from of the name (like " my building blocks") and your category will be at the top. &lt;/P&gt;
&lt;P&gt;If you already have a bunch of personal building blocks, you can move them to a different template using the organizer. You can get to the building blocks organizer from the insert ribbon, by selecting "quick parts" and then choosing "Building Blocks Organizer…" &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/020309_1805_Managingand1.png" mce_src="http://stunna42.members.winisp.net/020309_1805_Managingand1.png"&gt; &lt;/P&gt;
&lt;P&gt;This opens up a dialog box that lets you view all the available building blocks. If you want to change the location of a building block, you can select it and then choose "Edit Properties." You can then drop down the "Save in:" box and pick your new template. &lt;IMG alt="" src="http://stunna42.members.winisp.net/020309_1805_Managingand2.png" mce_src="http://stunna42.members.winisp.net/020309_1805_Managingand2.png"&gt; &lt;/P&gt;
&lt;P&gt;When you exit Word, you will be prompted with a message asking if you want to save your building blocks files. This also works to move building blocks into a document template if you are currently editing it. Unfortunately, you can't copy a building block using the organizer, though you can write a macro. The following macro inserts a building block called "Random" into a document, and then saves it to another template called "Test" and then deletes the building block from the document. &lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim objTemplate As Template &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim objBBs As BuildingBlockEntries &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim objBlock As BuildingBlock &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim objBlock2 As BuildingBlock &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim objBBTemp As Template &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Dim rangeValue As Range &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Templates.LoadBuildingBlocks &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;For Each objTemplate In Templates &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;If objTemplate.Name = "Building Blocks.dotx" Then &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Set objBBTemp = objTemplate &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;End If &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Next objTemplate &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Set objTemplate = ActiveDocument.AttachedTemplate &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Set objBlock = objBBTemp.BuildingBlockTypes(wdTypeAutoText).Categories("General").BuildingBlocks("Random") &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Set rangeValue = objBlock.Insert(Selection.Range) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;Set objBlock2 = objTemplate.BuildingBlockEntries.Add(Name:="Test", Type:=wdTypeAutoText, Category:="General", Range:=rangeValue) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="BACKGROUND: #f2f2f2"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"&gt;rangeValue.Delete&lt;BR&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1&gt;Sharing Building Blocks &lt;/H1&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx"&gt;Koen&lt;/A&gt; asked about administrating building blocks in an organization. The easiest way to do this is to add value called "SharedDocumentParts" to the "HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\General" registry key. You can set this to tell Word an additional location to look for document parts. The best thing to do is to point this at a shared network directory. That way everyone has access to the same building blocks. Also, like the Document Building Blocks folder, Word will load all the templates in this location so you can save them in many different files if you would like to. Additionally, if you are already sharing a global template within your organization, you can also save the building blocks in that template. &lt;/P&gt;
&lt;P&gt;Stay tuned for some tips on templates and building blocks. &lt;/P&gt;
&lt;P&gt;Happy Building. &lt;/P&gt;
&lt;P&gt;-Jodie &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9393523" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author></entry><entry><title>Keyboard Driven Building Block Insertion	</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2009/01/23/keyboard-driven-building-block-insertion.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2009/01/23/keyboard-driven-building-block-insertion.aspx</id><published>2009-01-23T18:14:00Z</published><updated>2009-01-23T18:14:00Z</updated><content type="html">&lt;P&gt;In my &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx"&gt;previous post&lt;/A&gt;, I introduced Building Blocks. Personally, I find that they can make putting complicated documents together a lot easier. That being said, when I get "in the zone" while typing, I don't want to take my hands off the keyboard and click through the ribbon to insert a Building Block. As a result, I do several things to make my life easier. But, before I get into that, let me review some of the features that I leverage. &lt;/P&gt;
&lt;H1&gt;Word's offerings &lt;/H1&gt;
&lt;P&gt;Building blocks, AutoText, and AutoCorrect are three features that Word offers to help with the creation of complicated documents. Each one of these features offer unique options to help create professional, consistent documents. &lt;/P&gt;
&lt;P&gt;AutoText has been around in Word for a while. AutoText facilitates reusing chunks of text, or other objects within a document. In Word 2007, AutoText was expanded to Building Blocks. Building Blocks are great because they are highly organized, and you can get a nice preview of the building block you are inserting in the galleries on the insert ribbon. That gives you a sanity check to make sure that you are inserting the right thing into your document. Also, in general, the use of galleries makes the individual building blocks significantly easier to find. &lt;/P&gt;
&lt;P&gt;While, in general, I find building blocks to be very useful, sometimes I don't want to have to insert items by navigating through the galleries. This is especially true for my most commonly used building blocks as well as my AutoText. As a result, I have done a few things to make inserting these building blocks easier. &lt;/P&gt;
&lt;H1&gt;My 'Figure' building block &lt;/H1&gt;
&lt;P&gt;In my thesis, I'm very picky about the way that my figures look, so I have made a special building block especially for my figures. That way, I can be sure that the formatting is just what I want every time and I don't have to create it from scratch for every figure. I did this by just selecting my figure, and then going to QuickParts on the insert tab and saving it to the building blocks gallery. For those times when I'm in the zone, I can type the name of my building block, "Figure" and then hit F3 and it gets inserted. &lt;/P&gt;
&lt;H1&gt;Slash commands for automatically updating AutoText &lt;/H1&gt;
&lt;P&gt;I have saved a bunch of AutoText entries that store all the acronyms that I am using in my thesis. I want all my acronyms to be consistent across my thesis, and I want them to be automatically update should I decide to change the acronym later. I especially want to be able to easy handle changes to these acronyms, or even if I decide to stop using an acronym all together. I accomplish this by inserting a field that references my named AutoText, instead of just inserting the AutoText itself. Unfortunately, it takes a long time to insert an AutoText field, so I would like to be able to reuse my field once I have inserted it once. I had 2 options for inserting these fields. One is to save the field as a building block and then use the solution I presented above. However, because of the nature of these AutoTexts as well as the frequency of their use throughout the document, I do something slightly different. I leverage the AutoCorrect feature (you know the thing that changes 'teh' to 'the' for you) to define what I call 'slash' commands. These are words that begin with '\' followed by a descriptor, such as \xml. I define an AutoCorrect entry that AutoCorrects the command to be the field. &lt;/P&gt;
&lt;P&gt;Here is how I do this: &lt;/P&gt;
&lt;P&gt;First, I create an AutoText entry. You can do this by selecting the text you want to have and then hitting Alt-F3. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri1.png" mce_src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri1.png"&gt; &lt;/P&gt;
&lt;P&gt;Then I insert a field with that auto text: &lt;STRONG&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri2.png" mce_src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri2.png"&gt; &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri3.png" mce_src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri3.png"&gt; &lt;/P&gt;
&lt;P&gt;Once I have inserted the field, I select it, and then go to Word Options to set up an AutoCorrect entry so that my slash command will be automatically changed. I need to make sure that "Formatted Text" is selected, otherwise the field won't be inserted. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri4.png" mce_src="http://stunna42.members.winisp.net/012309_1814_KeyboardDri4.png"&gt; &lt;/P&gt;
&lt;P&gt;Now anytime I type "\xml", Word will auto correct it to use my field. That way, I can just keep on writing and be confident that my acronyms will be consistent throughout the entire document, even if I decide later to change what it looks like. By combining AutoText Fields and AutoCorrect, I have an easy way to keep my acronyms consistent throughout my document. &lt;/P&gt;
&lt;H1&gt;More information &lt;/H1&gt;
&lt;P&gt;If you want more information on how to leverage these and related features, I recommend this &lt;A href="http://gregmaxey.mvps.org/Word2007_Building_Blocks_&amp;amp;_AutoText.htm" mce_href="http://gregmaxey.mvps.org/Word2007_Building_Blocks_&amp;amp;_AutoText.htm"&gt;"Help and Tips" page&lt;/A&gt;, put together by Word MVP Greg Maxey. This contains a lot of great information about working more efficiently with building blocks, and auto text. &lt;/P&gt;
&lt;P&gt;Stay tuned for tips on using Building Blocks to build powerful templates as well as managing building blocks. &lt;/P&gt;
&lt;P&gt;-Jodie&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9372963" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author></entry><entry><title>Building Blocks</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2008/12/15/building-blocks.aspx</id><published>2008-12-15T23:35:00Z</published><updated>2008-12-15T23:35:00Z</updated><content type="html">&lt;P&gt;I'm Jodie Boyer, the newest PM on the Word Team. I joined the Word team 6 months ago after spending 5 years in graduate school working towards a PhD in Computer Science. I decided to leave the program earlier this year, and I will receive a master's degree as soon as I complete my thesis. &lt;/P&gt;
&lt;P&gt;When I started on the team, I was given 2 features, namely Building Blocks and Templates. Building Blocks were relatively new to me, so I had to spend a lot of time developing expertise on them. Because the best way to learn is to teach, I've decided to put together a set of post of building blocks and using them in Word. Many of these things I have learned while working on my aforementioned thesis, so many of the examples I use will be from that. This post will cover some basics about Building Blocks, and in the future, I will write about quick entry of Building Blocks, as well as the use of Building Blocks in Templates. Of course, if there is anything else you want to hear about, I'm happy to take suggestions. &lt;/P&gt;
&lt;H2&gt;&lt;EM&gt;"So, what are Building Blocks?" &lt;/EM&gt;&lt;/H2&gt;
&lt;P&gt;In the simplest terms, Building Blocks are reusable chunks of a Word document. They can contain any thing a Word document can contain, including pictures, shapes, fields, and even other building blocks. &lt;/P&gt;
&lt;H2&gt;&lt;EM&gt;"Sounds a lot like AutoText, how is this different?" &lt;/EM&gt;&lt;/H2&gt;
&lt;P&gt;In many ways, Building Blocks are an extension of &lt;A href="http://office.microsoft.com/en-us/word/HP052587511033.aspx?pid=CH060831701033" mce_href="http://office.microsoft.com/en-us/word/HP052587511033.aspx?pid=CH060831701033"&gt;AutoText&lt;/A&gt;. However, you can do a few things with building blocks that you can't do with AutoText. My personal favorite is that you can define how building blocks insert. AutoText always insert relative to the current position of the cursor, but you can tell building blocks to insert in a new paragraph, or even on a new page. &lt;/P&gt;
&lt;P&gt;A great example of this is when you are working on a paper, and you would like to add a cover page. Instead of scrolling to the top of the document, adding a page break and formatting your own cover page, you can simply go to the Insert tab and pick a cover page. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/121508_2335_BuildingBlo1.png" mce_src="http://stunna42.members.winisp.net/121508_2335_BuildingBlo1.png"&gt; &lt;/P&gt;
&lt;P&gt;No matter where you are in your document, the cover page will get inserted at the beginning of the document, without messing up the formatting of the rest of your paper. In addition, if you right click on a cover page, you can insert it in all kind of other places too, like the beginning of the current section. &lt;/P&gt;
&lt;H1&gt;&lt;EM&gt;"They sound neat, but what would I use them for?" &lt;/EM&gt;&lt;/H1&gt;
&lt;P&gt;Building blocks can be used to save anything that can be in a Word document. Personally, I like to use them for complicated things, like cover pages. Sometimes I spend a long time getting things just right, and I'd hate to have to do it again, so I save it as a building block. You can also use them to create powerful, multipurpose templates, but that is a topic for another post. &lt;/P&gt;
&lt;H1&gt;&lt;EM&gt;"Ok, I'm convinced, but it sounds like a lot of work to get started" &lt;/EM&gt;&lt;/H1&gt;
&lt;P&gt;Actually, Word comes with more than 50 different building blocks designed by professionals here at Microsoft. If you visit the Insert ribbon, you can check out cover pages, text boxes, header, footers, and more. &lt;/P&gt;
&lt;P&gt;That's just a quick intro. Over the next month or so, I'll cover quick ways to insert Building Blocks, using Building Blocks to make powerful templates, and more. If you want more information today, feel free to check-out these posts from Zeyad and Jonathan: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/21/building-blocks-part-i.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/21/building-blocks-part-i.aspx"&gt;Building Blocks – Part I&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/22/inserting-and-swapping-building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/22/inserting-and-swapping-building-blocks.aspx"&gt;Inserting and Swapping Building Blocks&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/01/03/creating-building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/01/03/creating-building-blocks.aspx"&gt;Creating Building Blocks&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/02/20/deploying-building-blocks.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/02/20/deploying-building-blocks.aspx"&gt;Deploying Building Blocks&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Happy building! &lt;/P&gt;
&lt;P&gt;Jodie&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Edited 11:48 12-17-2008 to correct typos&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9222723" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author></entry><entry><title>Taking Control of Your Table of Contents or Document Map</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2008/12/02/taking-control-of-your-table-of-contents-or-document-map.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2008/12/02/taking-control-of-your-table-of-contents-or-document-map.aspx</id><published>2008-12-02T23:11:00Z</published><updated>2008-12-02T23:11:00Z</updated><content type="html">&lt;P&gt;As discussed in this &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/15/creating-documents-with-style.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2006/11/15/creating-documents-with-style.aspx"&gt;previous post&lt;/A&gt;, table of contents and the Document Map are designed to work best with documents that use styles. Styles not only apply a look and feel to a document, but also provide semantic structure. For example, applying a Heading 2 style to some content that exists under a Heading 1 style implies hierarchy within a document. &lt;/P&gt;
&lt;P&gt;Technically speaking, this hierarchy is represented as Outline Levels within paragraphs. In the case of heading styles, each heading level is formatted with the appropriate built-in heading style. For example, Heading 3 applies an outline level of Level 3. This hierarchy is easily represented within a Document Map or table of contents because Word will indent content based on outline levels. In other words, Heading 2 appears indented compared to Heading 1. &lt;/P&gt;
&lt;P&gt;What happens if you want to apply one of these styles, say Heading 1, to a paragraph for the look, but don't want that paragraph to show in your document hierarchy (via the Document Map or table of contents? What do you do? &lt;/P&gt;
&lt;P&gt;Well, I was asked this question recently and thought it would make for a good post on our blog. &lt;/P&gt;
&lt;P&gt;To illustrate the scenario, let's say I want to make this document below (notice the table of contents and Document Map): &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr1.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr1.png"&gt; &lt;/P&gt;
&lt;P&gt;Look like this document below (notice the change in the table of contents and Document Map, but not the look of the document): &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr2.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr2.png"&gt; &lt;/P&gt;
&lt;P&gt;There are several ways you can accomplish this scenario, but here is one way: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open up your Word document that you want to modify &lt;/LI&gt;
&lt;LI&gt;Place your &lt;EM&gt;insertion point&lt;/EM&gt; (IP; it's the blinking cursor you see when you click anywhere in a document) in any text that has a Heading 1 style applied &lt;/LI&gt;
&lt;LI&gt;Right click &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Click on Styles | Save Selection as a New Quick Style as shown below: &lt;/DIV&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr3.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr3.png"&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;At this point you are creating a new style that looks the same as Heading 1. You can call this new style anything you would like &lt;/LI&gt;
&lt;LI&gt;At this point you will see this new style appear in the Quick Styles gallery on the Home tab. In the Quick Styles gallery right click your new style that you created &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Click modify &lt;/DIV&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr4.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr4.png"&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;In the Modify Style dialog, click on Format | Paragraph, which is at the bottom left of the dialog &lt;/DIV&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr5.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr5.png"&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;In the Paragraph dialog, change Outline Level to &lt;EM&gt;Body Text&lt;/EM&gt; &lt;/DIV&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/120208_2311_TakingContr6.png" mce_src="http://stunna42.members.winisp.net/120208_2311_TakingContr6.png"&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Click OK to get out of the Paragraph dialog &lt;/LI&gt;
&lt;LI&gt;Click Ok to get out of the Modify Style dialog &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;At this point you have a new style that looks like Heading 1, but will not be seen in the table of contents or Document Map. Apply this new style to all text that you do not want to show up in the Table of contents or Document Map. Do not forget to update your table of contents to see changes take effect. &lt;/P&gt;
&lt;P&gt;Thanks, &lt;/P&gt;
&lt;P&gt;Zeyad Rajabi&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9166775" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word tips and tricks" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+tips+and+tricks/default.aspx" /></entry><entry><title>BEHIND THE CURTAINS: TABLE STYLES</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2008/11/24/behind-the-curtains-table-styles.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/24/behind-the-curtains-table-styles.aspx</id><published>2008-11-24T18:34:00Z</published><updated>2008-11-24T18:34:00Z</updated><content type="html">&lt;P&gt;Table Styles are my favorite &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/10/16/behind-the-curtain-styles-order-of-operations.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/10/16/behind-the-curtain-styles-order-of-operations.aspx"&gt;type of Style&lt;/A&gt; in Word. They allow you to quickly and consistently format the table itself (e.g. borders, shading, etc.), the content within the table (E.g. line spacing, font color, font size, etc.), and they can also can tell a table when to do these (e.g. shade every other row, bold text in the first column, etc.). The first two enable you to &lt;EM&gt;create&lt;/EM&gt; really rich tables, and the last one (which I'll call &lt;EM&gt;Conditional Formatting&lt;/EM&gt; for the rest of this post) enables you to easily &lt;EM&gt;work with&lt;/EM&gt; those rich tables. Both are quite important. &lt;/P&gt;
&lt;P&gt;Before we can get into all that, you need to know a bit about how Word thinks about tables… &lt;/P&gt;
&lt;H1&gt;The Structure of Tables &lt;/H1&gt;
&lt;P&gt;Word understands all of the following as discrete actionable parts of a table: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Whole Table &lt;/LI&gt;
&lt;LI&gt;Header Row &lt;/LI&gt;
&lt;LI&gt;Total Row &lt;/LI&gt;
&lt;LI&gt;First Column &lt;/LI&gt;
&lt;LI&gt;Last Column &lt;/LI&gt;
&lt;LI&gt;Odd Banded Rows &lt;/LI&gt;
&lt;LI&gt;Even Banded Rows &lt;/LI&gt;
&lt;LI&gt;Odd Banded Columns &lt;/LI&gt;
&lt;LI&gt;Even Banded Columns &lt;/LI&gt;
&lt;LI&gt;Top Left Cell &lt;/LI&gt;
&lt;LI&gt;Top Right Cell &lt;/LI&gt;
&lt;LI&gt;Bottom Left Cell &lt;/LI&gt;
&lt;LI&gt;Bottom Right Cell &lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is cool because it allows Table Styles to specify a conditional behavior for each of these parts. For example, in the table below, the Header Row and Total Row have top and bottom blue borders and are bolded, the Odd Banded Rows have blue shading, and the First Column and Last Colum are bolded. &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU1.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU1.png"&gt; &lt;/P&gt;
&lt;P&gt;And it is important to note that this is not the same as saying: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The row with "College," "New students," "Graduating students," and "Change," as well as the row with "Total," "998," "908," and "90" should have top and bottom blue borders and should be bolded &lt;/LI&gt;
&lt;LI&gt;The 1&lt;SUP&gt;st&lt;/SUP&gt;, 3&lt;SUP&gt;rd&lt;/SUP&gt;, 5&lt;SUP&gt;th&lt;/SUP&gt;, 7&lt;SUP&gt;th&lt;/SUP&gt;, 9&lt;SUP&gt;th&lt;/SUP&gt;, and 11&lt;SUP&gt;th&lt;/SUP&gt; rows below the "College" row should have blue shading in them &lt;/LI&gt;
&lt;LI&gt;The column containing "Cedar University," "Elm College," etc., and the column containing "+7," "+9," etc., should be bolded &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The former is formatting applied based on a table structural condition being true…i.e. Conditional Formatting. The latter is formatting directly applied to parts of the table. This makes a big difference when you start adding and subtracting rows and columns. &lt;/P&gt;
&lt;H1&gt;Why Conditional Formatting Based on a Rich Table Structure is Useful &lt;/H1&gt;
&lt;P&gt;Let's consider a simpler example using two tables—X and Y—where X uses a Table Style and Conditional Formatting and Y uses direct formatting. &lt;/P&gt;
&lt;DIV&gt;
&lt;TABLE class="" style="BORDER-COLLAPSE: collapse" border=0&gt;
&lt;COLGROUP&gt;
&lt;COL style="WIDTH: 638px"&gt;&lt;/COLGROUP&gt;
&lt;TBODY vAlign=top&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;STRONG&gt;Table X &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Table Style + Conditional Formatting on the Header Row, First Column, Total Row, and Odd Banded Rows&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU2.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU2.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;STRONG&gt;Table X &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Two rows added under "Monday," "Wednesday," "Friday"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU3.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU3.png"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table Y &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Direct formatting&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU4.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU4.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;STRONG&gt;Table Y &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Two rows added under "Monday," "Wednesday," "Friday"&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px" vAlign=center&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU5.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU5.png"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;
&lt;P&gt;As Table X grew, the formatting specified by the Table Style adjusted conditionally based on the new structure of the table. As Table Y grew, the new rows were directly formatted just like the row next to them. Smiley for the former, frowny for the later. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 64pt; TEXT-ALIGN: justify"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #4f81bd"&gt;&lt;EM&gt;Exercise: The first table shown in this post—the one with the colleges—uses a Table Style with Conditional Formatting. How would that table look if you added a row to top and bottom, and a column to the left and right side? See the end of this post for the answer. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1&gt;Conditional Formatting's Order of Operations &lt;/H1&gt;
&lt;P&gt;Hopefully the previous example shows you why the Conditional Formatting aspect of Table Styles is so important. After all, what good is a rich table if you have to do a bunch of work every time you add a row or column? &lt;/P&gt;
&lt;P&gt;That being said, the next question that comes to mind is around order of operations. Specifically, what is the order in which Conditional Formatting is applied in tables? I.e. In the previous example, how did Table X know that the Conditional Formatting for the First Column and Header Row should be applied "over" the shading on the Odd Banded Rows? Put yet another way, how did Word know not to make Table X look like this: &lt;/P&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU6.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU6.png"&gt; &lt;/P&gt;
&lt;P&gt;The answer is that Word shows Conditional Formatting on "smaller" parts over Conditional Formatting on "bigger" parts. We do this because otherwise you wouldn't see the Conditional Formatting on the smaller parts. If we &lt;STRONG&gt;don't&lt;/STRONG&gt; show the Header Row (smaller) over the Odd Banded Rows (larger), then you don't see the Header Row (e.g. funky table immediately above). If we &lt;STRONG&gt;do&lt;/STRONG&gt; show the Header Row (smaller) over the Odd Banded Rows (larger), then you see both the Header Row and the Odd Banded Rows (e.g. Table X). &lt;/P&gt;
&lt;P&gt;With that, here's the order that Word applies Conditional Formatting: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Whole Table &lt;/LI&gt;
&lt;LI&gt;Column Banding &lt;/LI&gt;
&lt;LI&gt;Row Banding &lt;/LI&gt;
&lt;LI&gt;Header Row, Total Row &lt;/LI&gt;
&lt;LI&gt;First Column, Last Column &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Top Left Cell, Top Right Cell, Bottom Left Cell, Bottom Right Cell &lt;/DIV&gt;
&lt;P style="MARGIN-LEFT: 28pt; TEXT-ALIGN: justify"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #4f81bd"&gt;&lt;EM&gt;Note: Conditional Formatting on the four corners is only applied if the respective rows and columns also use Conditional Formatting. E.g. Top Left Cell Conditional Formatting is only applied if First Column and Header Row are conditionally formatted. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;We go from big to small and conditionally format the whole table, then band the columns, move on to band the rows, gussy-up the header row and total row, take care of the first and then last column, and finish-up in the four corners. &lt;/P&gt;
&lt;P&gt;If you want to get your hands dirty and create your very own Table Style, simply insert a new table, drop the Table Styles Gallery, and click New Table Style at the bottom of the Gallery. &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 64pt; TEXT-ALIGN: justify"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #4f81bd"&gt;&lt;EM&gt;Note: If you really want to flex your Table Style muscles, you can specify the number of rows or columns in a "band." E.g. Instead of having one row per band like the tables in this post, you can specify that there should be two rows per band by dropping the Table Styles Gallery, clicking Modify Table Style, click the Format button, and click Banding. &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1&gt;Summary &lt;/H1&gt;
&lt;P&gt;While you may not now have the same undying love for Table Styles that I have, you hopefully now know that: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In addition to formatting the table and the contents of the table, Table Styles also define the conditions for when to apply that formatting. &lt;/LI&gt;
&lt;LI&gt;This is possible because Word sees tables a collection of parts that can each be acted upon conditionally. &lt;/LI&gt;
&lt;LI&gt;This is useful because it makes editing rich tables much easier. &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Smaller parts of tables are formatted over top of larger parts of tables. &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;- Jonathan Bailor &lt;/P&gt;
&lt;H3&gt;Answer to Exercise &lt;/H3&gt;
&lt;P style="TEXT-ALIGN: center"&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU7.png" mce_src="http://stunna42.members.winisp.net/112408_1834_BEHINDTHECU7.png"&gt; &lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9138305" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="Word Tech Details" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+Tech+Details/default.aspx" /><category term="styles" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/styles/default.aspx" /></entry><entry><title>Keyboard Customizations and Macros in WordMail</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx" /><id>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx</id><published>2008-11-18T02:36:00Z</published><updated>2008-11-18T02:36:00Z</updated><content type="html">&lt;P&gt;In my &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2008/09/15/wordmail-part-i.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2008/09/15/wordmail-part-i.aspx"&gt;first post on WordMail&lt;/A&gt;, I talked about how we fully integrated Word within Outlook for reading and writing emails. From a feature perspective, Word and WordMail are functionally the same. In other words, you have access to much of the same features in WordMail as in Word. However, from a technical perspective, Word and WordMail are two separate processes or entities. This is important to note because keyboard customizations and macros that work in Word will not automatically be available in WordMail. Today, I will show you how to add keyboard customizations and macros to WordMail for Office 2007. &lt;/P&gt;
&lt;H2&gt;Normal Email Template &lt;/H2&gt;
&lt;P&gt;As mentioned in &lt;A href="http://blogs.msdn.com/microsoft_office_word/archive/2007/02/27/timesaving-templates.aspx" mce_href="http://blogs.msdn.com/microsoft_office_word/archive/2007/02/27/timesaving-templates.aspx"&gt;this previous post&lt;/A&gt;, every document you create in Word is based off of a template. These templates store the look and feel of the document by specifying the appropriate styles. For the majority of cases, Word will use the Normal template whenever you create a new document. Similarly In the case of WordMail, every time you create an email you are creating a document based off of the NormalEmail template. &lt;/P&gt;
&lt;P&gt;You might be asking yourself, why have separate normal templates for Word and WordMail, especially if the underlying application is just Word. Well, there are a couple of reasons: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;We wanted to differentiate the look of documents authored in Word 2007 vs. emails authored in Outlook 2007. In the case of Office 2007, Word and WordMail use different paragraph spacing values, which make for a different reading and authoring experience &lt;/LI&gt;
&lt;LI&gt;Because we separated Word and WordMail it was not possible for two separate applications to access one normal template at a time without running into issues. For example, trying to update the styles as defined in the normal template in both Word and WordMail may result in conflicts and synchronization errors. In other words, we would run into issues where one application had a lock on the template file while the other was trying to write back into the template &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;The reason I am bringing up templates is because keyboard customizations are stored within a document or template. In the case of email, keyboard customizations are stored in the NormalEmail template. &lt;/P&gt;
&lt;H2&gt;Keyboard Customizations in WordMail &lt;/H2&gt;
&lt;P&gt;Since we don't share keyboard customizations between Word and WordMail anymore, you will need to add your customizations separately for each application. To add keyboard customizations in WordMail you will need to do the following: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Boot Word &lt;/LI&gt;
&lt;LI&gt;Click the Office Button &lt;/LI&gt;
&lt;LI&gt;Select Open &lt;/LI&gt;
&lt;LI&gt;In the Open dialog box, go to the following path &lt;EM&gt;%appdata%\Microsoft\Templates\&lt;/EM&gt; &lt;/LI&gt;
&lt;LI&gt;Double click on the NormalEmail template &lt;/LI&gt;
&lt;LI&gt;Once the template is opened, click the Office Button again &lt;/LI&gt;
&lt;LI&gt;Click on Word Options &lt;/LI&gt;
&lt;LI&gt;Select the Customize tab, and click on Customize &lt;/LI&gt;
&lt;LI&gt;Add as many keyboard customizations as you would like &lt;/LI&gt;
&lt;LI&gt;Make sure to save changes in NormalEmail template &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;At this point, anytime you create a new email with WordMail you will have access to your keyboard customizations that you have just added. &lt;/P&gt;
&lt;H2&gt;Macros in WordMail &lt;/H2&gt;
&lt;P&gt;Similarly to keyboard customizations, macros don't automatically work in both "apps" if you create them in one "app." For example, let's say you tried to run the following macro to insert "hello world" into an email in Outlook 2007: &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;Word.Selection.TypeText "hello world" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The result you would see is a run time error of 424: Object required. With Outlook 2007 you will need to write your macros with Outlook in mind. Once you have access to the Outlook object you will then have access to the Word object. The above macro can be rewritten as follows to work with Outlook 2007: &lt;/P&gt;
&lt;P style="MARGIN-LEFT: 36pt"&gt;&lt;SPAN style="FONT-FAMILY: Consolas"&gt;ActiveInspector.WordEditor.Windows(1).Selection.TypeText "hello" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In other words, the Inspector.WordEditor property will give you full access to the Word object model. &lt;/P&gt;
&lt;P&gt;With WordMail as the editor for other compose areas in Outlook, like tasks and appointments, you can write macros that will work exactly the same way in any of these Outlook items. &lt;/P&gt;
&lt;H2&gt;Accessing the Word OM in Outlook &lt;/H2&gt;
&lt;P&gt;By default, you will not see any intellisense for Word objects and properties if you try to access the Word object model in Outlook. Here is a way to remedy this limitation: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Boot Outlook &lt;/LI&gt;
&lt;LI&gt;Hit Alt-F11 to invoke the VB editor &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Tools | References and add the following: (Microsoft Word 12.0 Object Library) &lt;/DIV&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/111808_0236_KeyboardCus1.png" mce_src="http://stunna42.members.winisp.net/111808_0236_KeyboardCus1.png"&gt; &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;At this point in time you should be able to access the Word OM by declaring a document object and setting it to the WordEditor of a given compose note or read note: &lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" src="http://stunna42.members.winisp.net/111808_0236_KeyboardCus2.png" mce_src="http://stunna42.members.winisp.net/111808_0236_KeyboardCus2.png"&gt; &lt;/P&gt;
&lt;P&gt;In summary, there's Word and WordMail. They offer essentially the same feature set, but are two separate processes or entities. &lt;/P&gt;
&lt;P&gt;Zeyad Rajabi&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9115545" width="1" height="1"&gt;</content><author><name>wrdblog</name><uri>http://blogs.msdn.com/members/wrdblog.aspx</uri></author><category term="WordMail" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/WordMail/default.aspx" /><category term="Word Tech Details" scheme="http://blogs.msdn.com/microsoft_office_word/archive/tags/Word+Tech+Details/default.aspx" /></entry></feed>