For VBA basics, see
http://www.outlookcode.com/d/vbabasics.htm Once you have your macro security set and can get a Hello World message working, you can try putting this code in a new code module:
Sub ForwardA()
Dim objMail As Outlook.MailItem
Set objItem = GetCurrentItem()
Set objMail = objItem.Forward
objMail.To = "(E-Mail Removed)"
objMail.Display
Set objItem = Nothing
Set objMail = Nothing
End Sub
Sub ForwardB()
Dim objMail As Outlook.MailItem
Set objItem = GetCurrentItem()
Set objMail = objItem.Forward
objMail.To = "(E-Mail Removed)"
objMail.Display
Set objItem = Nothing
Set objMail = Nothing
End Sub
Function GetCurrentItem() As Object
Dim objApp As Outlook.Application
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = _
objApp.ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set GetCurrentItem = _
objApp.ActiveInspector.CurrentItem
Case Else
End Select
End Function
ForwardA and ForwardB are macros that each forward the current item to a different person.
For shortcuts, you'll need to add them to your toolbar (View | TOolbars | Customize); see
http://www.slipstick.com/outlook/toolbar.htm#macro
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"ArloSmurf" <arlosmurf-(E-Mail Removed)> wrote in message news:B8685548-8E49-48DA-8EF0-(E-Mail Removed)...
>I use OfficeXP Outlook for email. I want to be able to use a macro or
> shortcut to
> select a message header, then enter a 2-3 key shortcut to forward the
> message to
> a specific address as an attachment and then delete the original message.
> Tools => Macros just brings up the VB editor. I don't know how to use it,
> or how
> to begin interfacing with Outlook. Is there an easier way, such as a
> keystroke
> recorder?
> --
> ArloSmurf