![]() |
|
Spaces home Outlook 2007 Tips & Tech...ProfileFriendsBlogMore ![]() | ![]() |
Outlook 2007 Tips & Techniques from Sue MosherJuly 25 What's missing if you don't have Word 2007?As an Outlook programmer, I'm excited that a Word 2007 -- actually, a special implementation of Word 2007 -- is the editor for all Outlook 2007 items except sticky notes. Having Word as the editor means we can write code for item body construction and formatting that previously required a third-party programming library. The good news is that a lot of those programming techniques work even if Word 2007 itself is not installed.
But as an MVP who supports Outlook users, I'm annoyed about how the installation (or lack) of Word 2007 affects Outlook 2007's capabilities. Not only are many key features unavailable, but you can be missing those features even if you do have Word 2007 installed. Apparently, to get all the available Word 2007 features for email messages and other Outlook items, you need to install Outlook and Word from the same Office 2007 package. Installing from two different editions won't work. For example, if you install Office 2007 Home and Student Edition and then also install Outlook 2007, you will not get access to features that depend on Word 2007, such as themes and Quick Parts.
The most complete list description of the features that depend on Word 2007 is in this whitepaper:
There is no similar list for developer features related to the Word.Document object that Inspector.WordEditor returns. All the code in my Microsoft Outlook 2007 Programming book that is related to WordEditor was tested both with and without Word as the editor. I have also documented some changes related to Word as the editor in the article Microsoft Outlook 2007 Issues for Developers. For example, Outlook 2007 no longer exposes the context menu for a message body, something that was available in earlier versions with Word as the email editor. July 12 Outlook's alphabet soup of settings filesI once gave a quiz during a presentation to see if anyone could name all the different file types that Outlook uses to store its settings. I think there were 16 file types on my list, and one Microsoft product manager got almost all of them. But his job was Outlook configuration issues. Everyone else in the room seemed much less aware of how complicated it is to back up Outlook settings. Since then, things have taken two steps forward and a step or two back. Rules and the master category list in Outlook 2007 are now stored in the user's primary data store, whether that's an Exchange mailbox or a Personal Folders .pst file. However, Office 2007 has no equivalent for the Save My Settings Wizard, a tool that made it relatively easy in earlier versions to back up both registry settings and Outlook configuration files. Therefore, if you want to back everything up, you probably need to learn how to find all those configuration files and data files. The Microsoft Office Online article Where does Microsoft Office Outlook 2007 save my information and configurations? goes a long way to filling that need, especially as it starts out with instructions on how to make hidden files and folders visible in both Windows XP and Vista. The article leaves out some information, though, so here are my notes on what else you need to know: Personal Folders FilesThe paths given are the default, but a .pst file can be located anywhere on a local drive. (Microsoft does not support storing .pst files on network drives and warns that increased network traffic and data corruption may result.) Offline Address BookYou'll have .oab files only if you connect to an Exchange mailbox. Rules (.rwz)To back up your rules to a .rwz file, you need to use the export feature in the Rules Wizard. Custom formsThe Forms folder contains the forms cache, which consists of local copies of published custom forms that you have used. You don't need to back it up. It is useful to know, though, that if you need to recover a published form, for example if the administrator deletes it from the server, you can rename any of the .tmp files in the cache to .oft, then run the form with the Tools | Forms | Choose Form command in Outlook and republish it. Templates (.oft)The path given is the default for .oft form template files. However, the user can store an .oft file anywhere on the system. Message (.msg, .htm, .rtf)The article gives the path for these as the user's My Documents folder. Obviously, that's the default path for saving documents, including these copies of Outlook items. Any such files, though, are not essential to Outlook's operation. They're just copies of data that was once (and may still be) stored in Outlook folders. Completely left out of the article is the Normalemail.dotm file, which contains styles and QuickParts for use in email messages. It is stored in the same Templates folder as used by default for .oft files. The article also omits information about where Outlook stores information in the Windows registry. Here are the main keys:
For more information on Outlook 2007 backup issues, including links to third-party backup tools, see Diane Poremsky's article on Outlook 2007 File Locations. For a free tool to back up your .pst files, which hold data, rules, and the master category list, see Back up Outlook data with the Microsoft Outlook Personal Folders Backup tool. Currently, the only Microsoft tool that might be used to backup all Outlook data and settings is the User State Migration Tool, which is really designed for large-scale corporation desktop migration, not day-to-day use by average Office users. Version 3.0.1 supports both Windows XP and Vista. July 10 Convert recorded message body macros to Outlook 2007Many people are apparently unaware that when they recorded a macro in Outlook 2003 to insert text or make changes to an email message body, they were actually recording a macro for Word, not Outlook. When they copy that macro into Outlook 2007 VBA, naturally it doesn't work. For example, to insert the euro symbol, a user might have this macro working in Outlook 2003 (really Word 2003):
Running that code from Outlook 2007 VBA will result in a runtime error 424 - object required, because the Outlook object model does not support an intrinsic Selection object.
Selection in this usage is a Word object, not an Outlook object. Therefore, what you need is a way to get from the open Outlook message to a Word.Selection object. That mechanism is the WordEditor property of the Outlook Inspector window, which returns a Word.Document object. To see it in action, use the Tools | References command to add a reference to the Microsoft Word library. Then add this new version of the Euro subroutine, revised for Outlook 2007:
Put the cursor in the message body, then run the macro.
In both procedures, I've highlighted the statement that actually inserts the text, so you can compare them. You can apply this same technique to any Word 2003 macro that uses a Selection object. Just get the Selection by starting with the item that the user has open in the ActiveInspector window, then invoke the desired methods and properties of that Selection object, the ones you may have discovered by recording a macro in Word.
What's great about this approach is that, because Word is also the editor for tasks, contacts, appointments, and journal entries, not just messages and post items, you can apply formatting to the bodies of any of those Outlook items programmatically, something that was not possible in earlier versions of Outlook without installing additional components. Chapter 17 in my Microsoft Outlook 2007 Programming book has many, many more examples of moving around in the editor and inserting formatted text, hyperlinks, and images. February 22 Word/Excel 2007 annoyance: Missing File | Send To | Mail Recipient commandAmong the commands not included on the ribbon in Word 2007 and Excel 2007 is the File | Send To | Mail Recipient command that allowed users in earlier versions to send the content of a document or worksheet as the body of an Outlook mail message. Fortunately, the command is still available. You just have to add it to the Quick Access Toolbar (QAT), which is the small toolbar above the ribbon:
Once you add the command to the QAT, you'll see it on the QAT as a little green ball that you can click any time you want to create an email message using the current worksheet or document. October 09 Managing custom stationery and themes for Outlook 2007The Outlook Help topic "Apply stationery, themes, and backgrounds to e-mail messages" states:
That is definitely true up to a point. Outlook 2007 itself provides no way to customize existing stationery or customize a theme to add a background image. That does not mean, however, that you can't create and deploy custom stationery and themes with other tools and make them available to Outlook. Where does Outlook look for stationery and themes? Four different locations:
Let's consider the third and last locations first. Even though you can't create or modify stationery inside Outlook, you can copy an .htm file created with any HTML editor to one of these Stationery folders, and Outlook will display it in the list of stationery and themes with (Stationery) after the file name. I am also happy to report that with the help of Office MVP Bob Buckland and the Microsoft Knowledge Base article WD2000: How to Modify a Theme that Bob pointed out, I can now create a custom theme with a background image that Outlook 2007 can use for new messages. The problem for many users will be that the method to create a custom theme requires FrontPage 2003. SharePoint Web Designer and Expression Web Designer don't support themes. Here's the step-by-step how-to: 1. Open FrontPage 2003 (you don't need to connect to any existing web), and create a new normal page. 2. Choose Format | Theme to display the Theme task pane. 3. At the bottom of the Theme task pane, click Create new theme. 4. Use the Colors and Text buttons to change the colors and fonts for your theme. 5. To set the background picture, click the Graphics button. 6. On the Picture tab, under Background Picture, click Browse and select the picture you want to use, and then click Open. Click OK to accept that picture as the background. 7. When you have finished, click Save or Save As to save the changes to your custom theme. FrontPage will prompt you for a name for the new theme. You should now be able to use your new theme in Outlook by choosing Actions | New Message Using | More Stationery or can make your new theme the default in Tools | Options | Mail Format | Stationery and Fonts | Theme. FrontPage saves custom themes as .elm files, each theme in their own folder, to the user's %appdata%\Microsoft\Themes folder. According to Bob, you also can copy a saved custom theme's folder to the \Program Files\Common Files\Microsoft Shared\THEMES12 folder; this is a good technique to keep in mind if you need to deploy a custom theme to all your users. In case you're curious, the themes that users modify and save with Word or Outlook 2007 using the Page Layout | Themes tab are stored as .thmx files and can be modified with PowerPoint 2007, but the background image doesn't show up in a mail message or document. I wonder why that's the case. UPDATE (9 Feb 2007): Outlook 2007 does not support background images for either messages as a whole or table cells. UPDATE (23 Jul 2007): Apparently, to make themes work, you need to have Outlook and Word from the same Office 2007 package. Installing Outlook 2007 standalone along with Word from Office 2007 Home and Student Edition will not make themes available. UPDATE (14 Apr 2008): Added location for stationery distributed with Outlook 2007. July 17 Managing Outlook mail profiles on Vista x64Hardcore Outlook users, developers, and support staff know that you sometimes need to test a configuration with a different mail profile. That’s easier said than done if you have Outlook 2007 running on Windows Vista 64-bit version, because Control Panel shows only 64-bit applets. To get to the Mail applet so that you can create a new mail profile or ask Outlook to prompt you for a profile, open Control Panel and choose Additional Options, then View x86 Control Panel Icons . Alternatively, switch to the Classic view of the Control Panel and run the View x86 Control Panel Icons applet. June 12 More Outlook editor template tipsHere are a couple more tips for working with the NormalEmail.dotm template that holds the Quick Styles, Quick Parts, and other settings for the Outlook editor: Tip #1: To reach the folder that contains the template, use the folder path %appdata%\Microsoft\Templates. That will get you to the right folder, regardless of whether you use Windows Vista or Windows XP. Tip #2: To insert text from a Quick Part using the keyboard only, type the name of the Quick Part and then press F3. June 09 Download full messages from an IMAP accountThe default setting for an IMAP account in Outlook 2007 is to download only headers from the Inbox, but you can change that setting to make it download complete items instead. Follow these steps:
The next time Outlook performs a manual or automatic send/receive for that account, you should see full items download into the Inbox folder. June 08 Add a new Quick Part for email messagesQuick Parts are a new Word and Outlook 2007 feature for text fragments and other building blocks, replacing the AutoText feature in previous versions. Here’s how you can create a Quick Part to hold boilerplate text for insertion in an email message.
To test your new Quick Part:
Outlook saves the Quick Part in the NormalEmail.dotm file, a template used for email messages that also can contain your custom Quick Style settings. June 07 Add a new Quick Style for email messagesOne of the new features in Office 2007 is style “galleries” that give you a preview of how the text will look once you apply the style. On an Outlook message, you’ll see the Quick Styles gallery on the Format Text tab. What is not so obvious is how to make changes to the styles or – better yet – add your own styles to the gallery. What you will need to do is customize the template that holds the styles. The template that Outlook 2007 uses for email messages is NormalEmail.dotm, which is located in the default templates folder for Office – usually C:\Documents and Settings\<user name>\Application Data\Microsoft\Templates. Once you find this file in Windows Explorer, follow these steps:
You should now be able to restart Outlook, create a new message, and see your new Quick Style in the Format Text tab’s gallery. [7 Jun 2006: Corrected Documents and Templates to Documents and Settings]
|
|
|||||||||||||||||||||||||||||||||||||||||
|
|