<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx</link><description>In my first post on WordMail , 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</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Keyboard Customizations and Macros in WordMail | Tmao Coders</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9115726</link><pubDate>Tue, 18 Nov 2008 05:54:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9115726</guid><dc:creator>Keyboard Customizations and Macros in WordMail | Tmao Coders</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.tmao.info/keyboard-customizations-and-macros-in-wordmail/"&gt;http://www.tmao.info/keyboard-customizations-and-macros-in-wordmail/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Content Controls in Word14</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9120441</link><pubDate>Wed, 19 Nov 2008 01:09:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9120441</guid><dc:creator>Mesan</dc:creator><description>&lt;p&gt;_Please_ tell me that you're going to have a way from within Word to link up content controls to a custom XML file. &amp;nbsp;Right now anyone who wants to take advantage of content controls and programmatically create documents needs to use the Content Control Toolkit, which (although it works great) is a joke. &amp;nbsp;We should be able to do that directly from within Word. &amp;nbsp;_Please_ tell me you're improving support for content controls in Word14. &amp;nbsp;_Pleeeeeeeeease?_&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9121154</link><pubDate>Wed, 19 Nov 2008 04:40:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9121154</guid><dc:creator>Michael H. Shacter</dc:creator><description>&lt;p&gt;Did you actually try to use any of the keys that you reassigned using the method you described in &amp;quot;Keyboard Customizations in WordMail&amp;quot;? Although the steps you described will cause the customizations to be saved in NormalEmail.dotm, in my experience those customizations will not be recognized by the Outlook Wordmail editor. To eliminate any doubt you may have that I failed to follow the directions, let me say that I examined the file &amp;quot;customizations.xml&amp;quot; in the &amp;quot;Word&amp;quot; folder after unzipping NormalEmail.dotm and confirmed that the assignments had been added to the template. &lt;/p&gt;
&lt;p&gt;In view of the foregoing, it probably does not make any difference, but you left out a couple of key steps in the description. Before editing NormalEmail.dotm, you must first close Outlook.&lt;/p&gt;
&lt;p&gt;More significantly, in most cases what people will want to do is replicate in Outlook the key assignments they already have in Word. In that case, an essential step is to first remove the key assignment and then reassign it to NormalEmail.dotm. Otherwise Word will not recognize a change.&lt;/p&gt;
&lt;p&gt;Finally, even if this roundabout customization method actually worked, it would not address the most important reason that your users desire to customize the keyboard--viz. to assign a keystroke to a macro. Since the keyboard customizations would have to be edited in Word, there would be no way to assign a shortcut to an Outlook macro. (The fact that you would have re-write your macros in Outlook is an additional nuisance.)&lt;/p&gt;
&lt;p&gt;No offense, but your post exemplifies what is wrong with Microsoft Office development--the people who develop the programs don't actually use them in the way that business people do. Of course, you send e-mails to your friends and colleagues, but these are likely to use a telegraphic syntax. In contrast, when I communicate with clients, the message needs to be comparatively well-constructed, in order to retain their confidence. Accordingly, editing tools are important to help me swiftly and efficiently communicate in a manner that will not cause the recipient to shake his head in doubt. &lt;/p&gt;
&lt;p&gt;The Word and Outlook teams have let people like me down. In Outlook 2003 and earlier, editing an e-mail was no different from editing in the same document Word--with all editing customizations. With Outlook 2007, we have been cut off at the knees.&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9121385</link><pubDate>Wed, 19 Nov 2008 05:43:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9121385</guid><dc:creator>BrianJones</dc:creator><description>&lt;p&gt;Michael,&lt;/p&gt;
&lt;p&gt;Could you let me know what command(s) you tried to customize in WordMail? In addition to the command it would be good to know what shortcut key you tried to assign. &lt;/p&gt;
&lt;p&gt;Yes, closing Outlook is necessary to get write access to NormalEmail.dotm. Thanks for clarifying. &lt;/p&gt;
&lt;p&gt;In terms of replicating Word customizations in Outlook I was planning on writing a future post talking about a tool to accomplish this scenario. Currently, this task is quite manual as you describe.&lt;/p&gt;
&lt;p&gt;The scenario you mention around accessing a macro via a keyboard customization is quite interesting. You should be able to assign a keyboard shortcut to a macro contained within NormalEmail. Is that not the case? &lt;/p&gt;
&lt;p&gt;Could you explain a bit more on how you use editing tools to more “swiftly and efficiently communicate?” I really want to understand your scenario here to help figure out if something is missing in our current design. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Zeyad Rajabi&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9121837</link><pubDate>Wed, 19 Nov 2008 07:39:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9121837</guid><dc:creator>Francis</dc:creator><description>&lt;p&gt;You got my hopes up, but it seems that not all keyboard customizations make the translation into Outlook. I tried assigning ALT+S to do anything but send, but alas, it had no effect. (Thanks for adding the feature to disable send on CTRL+ENTER, but I still have sent out embarrasingly unfinished e-mails by hitting ALT+S by accident.)&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9124676</link><pubDate>Wed, 19 Nov 2008 18:57:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9124676</guid><dc:creator>Michael H. Shacter</dc:creator><description>&lt;p&gt;Hi Zeyad,&lt;/p&gt;
&lt;p&gt;Many thanks for your cool response to my heated posting.&lt;/p&gt;
&lt;p&gt;I tried three key reassignments: two that I use commonly and one other for experimentation. First, I tried assigning Ctrl+K to &amp;quot;ChangeCase&amp;quot; (the command that is natively bound to Shift+F3). Following this reassignment, Ctrl+K continued to function as &amp;quot;InsertHyperlink&amp;quot;. Next, I tried assigning Ctrl+R to &amp;quot;EditReplace&amp;quot; (natively, Ctrl+H). Following this reassignment, Ctrl+R continued to function as &amp;quot;RightPara&amp;quot; (right paragraph justification). In each of these two cases, there was a key natively assigned to the function and a reassignment from one function to another. As a final experiment, I tried to associate an unused key to a function with no key assignment. I assigned &amp;quot;Strikethrough&amp;quot; to Alt+F12. This also produced no result. Incidentally, I am running Outlook 2007 (12.0.6316.5000) SP1 MSO (12.0.6320.5000) (part of Office Enterprise 2007) on Windows XP Professional SP3. What key assignments were you successfully able to change?&lt;/p&gt;
&lt;p&gt;Incidentally, if I used &amp;quot;Alt+Ctrl+ Num +&amp;quot; (ToolsCustomizeKeyboardShortcut) to examine the key assignments, the reassigned keys appeared in the &amp;quot;Customize Keyboard&amp;quot; dialog. (I.e., (1) type &amp;quot;Alt+Ctrl+ Num +&amp;quot;, (2) click &amp;quot;Format Text&amp;quot; on the ribbon, (3) click on the Strikethrough icon, (4) Alt+F12 appears in the &amp;quot;Current Keys&amp;quot; field, but has no effect when editing a message.) You mentioned &amp;quot;talking about a tool to accomplish this scenario&amp;quot;. There already is a tool: &amp;quot;Alt+Ctrl+ Num +&amp;quot;. Unfortunately, it does not save the changes to NormalEmail.dotm.&lt;/p&gt;
&lt;p&gt;Outlook macros are not stored in NormalEmail.dotm. All Outlook macros--including those affecting the e-mail editor are stored in VbaProject.OTM. This is a change from earlier versions of Outlook, where Wordmail macros were stored in Word templates. Accordingly, I do not think an Outlook macro can be assigned to a keystroke in Word.&lt;/p&gt;
&lt;p&gt;Here are a few of the macros I have assigned to keyboard shortcuts:&lt;/p&gt;
&lt;p&gt;1. Delete to end of line (there is no native Word command for this fundamental function). As variants this function, I also have macros for &amp;quot;Delete to end of sentence&amp;quot; and &amp;quot;Delete line&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. Paste as plain text (equivalent to &amp;quot;Paste Special&amp;quot; -&amp;gt; paste as unformatted Unicode text)&lt;/p&gt;
&lt;p&gt;3. Toggle paragraph spacing (usually used to switch from automatic paragraph spacing to no spacing when typing a list--like this one)&lt;/p&gt;
&lt;p&gt;4. Cut the entire word on which the cursor is located--regardless of insertion point--to the clipboard (equivalent to select word and then cut).&lt;/p&gt;
&lt;p&gt;5. Toggle curly quotation marks&lt;/p&gt;
&lt;p&gt;6. Insert space after insertion point. I frequently find the need to insert text when the cursor is at the beginning of another word. Starting to type causes the following word to appear misspelled. Moreover, formatting the word to be inserted (bold, italics, etc.) will cause the following word to be formatted to.&lt;/p&gt;
&lt;p&gt;7. Correct misspelling and then return to insertion point. (I might be several words ahead when I discover a misspelled word. This brings me back to wherever the cursor was when I corrected an error. This is equivalent to Alt+F7, followed by Shift+F5, but only if I have not been cursoring around.)&lt;/p&gt;
&lt;p&gt;You might be thinking that none of these macros (either individually or in the aggregate) sound like big timesavers--and you might be right. The point, however, is that these and other keyboard macros--along with key reassignments--are the way I am used to editing documents with Word and in Outlook. All the convenience I had from using the same editor for documents and e-mail messages is gone.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9125771</link><pubDate>Wed, 19 Nov 2008 23:11:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9125771</guid><dc:creator>Zeyad Rajabi</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed information. &lt;/p&gt;
&lt;p&gt;You are right; we have a bug with WordMail with respect to not abiding to reassigned shortcut keys. I attempted to reassign ctrl-b to another command. Everything seems to work within NormalEmail, but does not function in WordMail. I will log this issue in our bug database. &lt;/p&gt;
&lt;p&gt;We also have another issue where assigning to Alt-F9 does not work. Not too sure why at this point. However, assigning to Alt-9 does work. I will log a bug for this issue as well. &lt;/p&gt;
&lt;p&gt;The tool I was talking about is a way to just copy over the xml contained within Normal to NormalEmail. Since both these templates are just xml files, this tool should be easy to write. &lt;/p&gt;
&lt;p&gt;By the way, using Alt+Ctrl+Num + is a great and easy way to modify keyboard shortcuts for WordMail. Thanks for letting people know that trick as well. &lt;/p&gt;
&lt;p&gt;I have a solution for assigning Outlook macros with shortcut keys (thanks to David Ngo). You need to create your macros within NormalEmail by taking into account Outlook. You then need to assign a shortcut key to that macro within NormalEmail. For example, the following macro, stored within NormalEmail, will insert text within WordMail:&lt;/p&gt;
&lt;p&gt;Sub MSG_info()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Dim oDoc As Word.Document&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Dim outlookApp As Outlook.Application&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Set outlookApp = GetObject(, &amp;quot;Outlook.Application&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Set oDoc = outlookApp.ActiveInspector.WordEditor&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;oDoc.Range.InsertBefore &amp;quot;hoho!!!&amp;quot;&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Hopefully that helps. Let me know if you run into any other issue.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Zeyad&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9128147</link><pubDate>Thu, 20 Nov 2008 12:42:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9128147</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'd like to suggest a topic for this blog:&lt;/p&gt;
&lt;p&gt;What's the correct way to create/use a text data source for Word Mailings from an external application? With CSV format you often get problems as Word 2007 automatically chooses the Simple Chinese codepage instead of the Western Europe one. This gives chinese symbols for the German Umlauts like &amp;#228;&amp;#246;&amp;#252;&amp;#196;&amp;#214;&amp;#220;&amp;#223;.&lt;/p&gt;
&lt;p&gt;Also there's no conversion dialog shown when using MailMerge.Opendatasource to set the data source - regardless of its parameters or Options.DefaultTextEncoding you get always the wrong encoding when attaching certain csv files as data source.&lt;/p&gt;
&lt;p&gt;The only way I've found to get the correct encoding for the text data source is to set the (for Word 2007) undocumented registry key HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Options\DefaultCPG to DWORD 1252 (Western Europe)&lt;/p&gt;
&lt;p&gt;But this suppresses the dialog also for user interactions like Office-Button/Open and manually attaching the data source.&lt;/p&gt;
&lt;p&gt;In the Internet I've found many pages with questions asking for a solution to the problem.&lt;/p&gt;
&lt;p&gt;And even only a few people found the DefaultCPG workaround.&lt;/p&gt;
&lt;p&gt;So what's the correct way to programmatically create/open text data sources for Word Mailings with the correct encoding?&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9128969</link><pubDate>Thu, 20 Nov 2008 16:23:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9128969</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;PS: Initially I'd hoped Word would also accept simple XML-Files (where you can give the encoding parameter within the file) as data source, Unfortunately it doesn't yet. Having to create OpenXML just to get a data source with the correct encoding would be no realistic option for many developers. :-/&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9129570</link><pubDate>Thu, 20 Nov 2008 19:22:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9129570</guid><dc:creator>Michael H. Shacter</dc:creator><description>&lt;p&gt;Hi Zeyad,&lt;/p&gt;
&lt;p&gt;I hope your bug report won't be limited to the few keys mentioned in your posting. In my testing of the first 4 letters at the top of the keyboard (QWER), the majority of hot-key combinations did not work. The following did not work: Ctrl+Q, Ctrl+Shift+Q, Ctrl+Shift+W, Ctrl+E, Ctrl+Shift+E, Ctrl+R, Ctrl+Shift+R. Based on this small sample, it is fair to assume that the majority of key reassignments will not work. &lt;/p&gt;
&lt;p&gt;Now that you have convinced me that it is possible to assign at least some keystrokes to the e-mail editor, I have a suggestion for a much easier method for making the assignments. &lt;/p&gt;
&lt;p&gt;1. Close Outlook and then open NormalEMail.dotm in Word as suggested in your original posting.&lt;/p&gt;
&lt;p&gt;2. In the &amp;quot;Customize Keyboard&amp;quot; dialog, click on &amp;quot;All Commands&amp;quot; and then assign &amp;quot;ToolsCustomizeKeyboard&amp;quot; to one of the keys that you know will accept key reassignments in Outlook, e.g. Alt+9.&lt;/p&gt;
&lt;p&gt;3. Save the assignment to NormalEMail.dotm, as you described.&lt;/p&gt;
&lt;p&gt;4. Re-open Outlook and type Ctrl+N to start a new message.&lt;/p&gt;
&lt;p&gt;5. Click on the body of the message and type Alt+9. You can now assign any command to a key--assuming the Wordmail bug does not prevent the assignment.&lt;/p&gt;
&lt;p&gt;Incidentally, I found that using Ctrl+/ as a prefix key offered many choices for the secondary key. For example, assigning &amp;quot;Ctrl+/, -&amp;quot; as a shortcut for Strikethrough.&lt;/p&gt;
&lt;p&gt;With regard to the sample macro, since the macro is running in the Outlook process, it is not necessary to use the &amp;quot;GetObject&amp;quot; function call to get a reference to Outlook.Application. The following is sufficient:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Set OutlookApp = Outlook.Application&lt;/p&gt;
&lt;p&gt;Moreover, since the ActiveInspector method is a global procedure, and since one is unlikely to need an OutlookApp variable for any purpose other than to get a reference to the WordEditor object, the following is all that is required:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Set oDoc = ActiveInspector.WordEditor&lt;/p&gt;
&lt;p&gt;Note: If you wanted to edit your macros in Word using this abbreviated terminology, a reference should be set to the Microsoft Outlook 12.0 object library. Presumably, however, the favored manner of development would be to originate a macro in the Outlook VBA editor, where it would be stored in VbaProject.OTM. After the macro was debugged, it could be copied by cut/paste to NormalEMail.dotm in Word's VBA editor. It's a pity there is no way to do this directly in Outlook.&lt;/p&gt;
&lt;p&gt;Here is another bug to add to report. Macro keystroke assignments are not visible in the Customize Keyboard dialog in Word or Outlook in sessions subsequent to the session in which the key was assigned. They keyboard assignments persist from session to session, but when you bring up the Customize Keyboard dialog, there is nothing in the &amp;quot;Current Keys&amp;quot; box (i.e. as if no key had been assigned to the macro). The assignments to native functions do appear in the &amp;quot;Current Keys&amp;quot; box.&lt;/p&gt;
&lt;p&gt;Thanks for tackling this topic. I think it is fair to say that even you were surprised to learn the way key customizations and macros operate in Outlook.&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9242898</link><pubDate>Sat, 20 Dec 2008 00:38:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9242898</guid><dc:creator>Gary Jacobsen</dc:creator><description>&lt;p&gt;Sorry, but my question is about email attachments, not about keyboards; however, I'm sure you can solve this one for me (or refer me to someone who can):&lt;/p&gt;
&lt;p&gt;Recently I installed MS Office Home and Student 2007 and uninstalled MS Office XP Professional with Front Page. But now when others send me email attachments that are in .docx format, I cannot open them. Message says, &amp;quot;This action is only valid for products that are currently installed.&amp;quot; &amp;nbsp;Can you help?&lt;/p&gt;
&lt;p&gt;Gary Jacobsen&lt;/p&gt;
&lt;p&gt;ggjacobsen@msn.com&lt;/p&gt;
</description></item><item><title>re: Keyboard Customizations and Macros in WordMail</title><link>http://blogs.msdn.com/microsoft_office_word/archive/2008/11/17/keyboard-customizations-and-macros-in-wordmail.aspx#9320172</link><pubDate>Thu, 15 Jan 2009 09:37:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9320172</guid><dc:creator>onscreen keyboard</dc:creator><description>&lt;p&gt;I've guessed how to do it earlier, but thanks for this detailed post anyway.&lt;/p&gt;
</description></item></channel></rss>