Using Word as Editor through VBA

R

RW

Using Word as the default editor has been turned off by the admins. However,
one can select it by customizing the tool bar and adding Microsoft Word from
the Actions group.

The problem with this is that it isn't used when replying to emails unless
one copies the email they are replying to and pasting it into word.

Is there a way to write a macro that would allow one to reply using Word? In
other words, a macro whose icon I can put on the toolbar to replace the
current Reply and one to replace Reply to All? Or even better, a macro the
user can click on when Outlook is opened and it will set Word as the default
editor?
 
K

Ken Slovak - [MVP - Outlook]

You'd need to write to the Windows registry when Outlook was closed down,
the setting for that is only read from the registry on startup. Any changes
after that are written to the registry and the current setting is maintained
in an in-memory cache, but the registry setting isn't read again.

Of course if you do that you run the risk of running afoul of your admins if
you're caught.
 
R

RW

The PC is on Citrix thus the registry can not be accessed.

Is there a way to write a macro that would capture the email being read and
open Word as the editor? I can use Word as the editor for new emails because
I have it as an icon on the toolbar (got it from the action menu under
customizing the toolbar). I need to be able to easily use it for Reply and
Reply to All.

Thanks
 
K

Ken Slovak - [MVP - Outlook]

If you create a macro to open Word it would be an independent document
window and not an email. So you'd have to create a new email, then copy the
text from the open one or one you are reading in the preview pane.

However, that would not be a reply message it would be a new one, with none
of the conversation indexing, addressing and other characteristics of an
actual reply message.
 
R

RW

OK, I don't want to open Word as Word. If you customize the toolbar of
Outlook and under the Tools section, there is an Action group. Within this
group is MS Word as html. When used, this opens Word as the email editor.
This is still available on our PC's and works but only for new email.

What I need is a macro that will copy the email one is reading / is active
(including the To, CC, Subject, etc) and paste it into the Word email editor
after opening it. If one uses the newly created Reply macro, then the To and
subject would automatically be filled out. If one used the newly created
Reply to All macro then the To and Cc lines would also be filled out
automatically. Is any of this possible?

I appreciate any help you can provide. Thanks
 
K

Ken Slovak - [MVP - Outlook]

Yes, it's possible, but as I said it won't be a reply message, it will be a
brand new one. You'd also have to get the original recipients and reverse
them so the sender of the original would be the recipient of the fake reply
and the recipient of the original was the new sender.

The To, CC, etc. fields will show the email display name, not the actual
email addresses. Those might be usable for emailing or might not be. If
"Joe" sends you something that might not mean anything when replying.

If you are reading an email then you would get it as
ActiveExplorer.Selection(1). If you have it opened it would be
ActiveInspector.CurrentItem.

From there you can read HTMLBody for an HTML message or Body for a plain
text message, Subject, To, Cc, etc. If you want the actual recipients you
would access the Recipients collection of the original item and iterate each
recipient.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top