how do i create a macro in outlook 2007 message view ?

  • Thread starter Thread starter tapuz
  • Start date Start date
T

tapuz

in word one can record a macro, can this be done in "outlook 2007" ?
or can one copy and paste a macro from word 2007 to "outlook 2007" ?
or some other way to create macros.
i would like the macro to work in the message view of "outlook 2007", i
havent found a way to do this.
 
Outlook 2007 does not have the capability to record macros. You can paste in
a Word macro, but you need to add the following to the top of the routine:

Sub Whatever()
Dim objDoc as Word.Document
Dim objXX as Word.WhatEverWordObjectsYouNeed 'e.g. .Selection

Set objDoc = Application.ActiveInspector.WordEditor
Set objXX = objDoc.Windows(1).SomeWordObject 'e.g. Selection

' Do your thing on objXX

Set objXX = Nothing
Set objDoc = Nothing
End Sub
 
Back
Top