A
Amir
Hi,
I'm looking for a way to do the following 3 actions using VBA / VB in
Outlook:
(I'm using Office 2000 Proffessional)
1. Assign a shortcut key to a macro in Outlook.
In Word I would have used something like:
Dim kbNew As KeyBinding
Set kbNew = KeyBindings.Add(KeyCategory:=wdKeyCategoryCommand, _
Command:="MyMacroName", KeyCode:=BuildKeyCode(wdKeyControl,
wdKeyAlt, wdKeyA))
But how can I do that in Outlook?
2. Getting the current selected text. I mean the text which I select with
the mouse in the preview of the current mail. In Word I would have used:
Selection
to get the current selected text. What is the equivalent in Outlook for the
current selected text in the active mail message preview?
3. How can I distribute macros in Outlook? In Word I would have put the .dot
template in the users' C:\Documents and Settings\Application
Data\Microsoft\Word\Startup Directory, so that the template was loaded each
time Word starts. In Outlook, there are no templates, so how can I
distribute the macros to other users?
I know VBA and a bit of VB.
Kind Regards,
Amir.
I'm looking for a way to do the following 3 actions using VBA / VB in
Outlook:
(I'm using Office 2000 Proffessional)
1. Assign a shortcut key to a macro in Outlook.
In Word I would have used something like:
Dim kbNew As KeyBinding
Set kbNew = KeyBindings.Add(KeyCategory:=wdKeyCategoryCommand, _
Command:="MyMacroName", KeyCode:=BuildKeyCode(wdKeyControl,
wdKeyAlt, wdKeyA))
But how can I do that in Outlook?
2. Getting the current selected text. I mean the text which I select with
the mouse in the preview of the current mail. In Word I would have used:
Selection
to get the current selected text. What is the equivalent in Outlook for the
current selected text in the active mail message preview?
3. How can I distribute macros in Outlook? In Word I would have put the .dot
template in the users' C:\Documents and Settings\Application
Data\Microsoft\Word\Startup Directory, so that the template was loaded each
time Word starts. In Outlook, there are no templates, so how can I
distribute the macros to other users?
I know VBA and a bit of VB.
Kind Regards,
Amir.