Results 1 to 2 of 2
Thread: Macros won' work (2007)
2008-05-13, 09:16 #1
- Join Date
- May 2001
- Patterson Lakes, Melbourne, Victoria, Australia
- Thanked 0 Times in 0 Posts
Macros won' work (2007)
I have just upgraded to Office 2007. However some macros in the Word editor for Outlook now don’t work, even though they work just fine in Word on its own.
Here is a sample with error messages:
' Inserts signature 'Peter'
Dim Pos As Integer
Application.ScreenUpdating = False ‘Error:- Object doesn’t support this property or method.
Selection.TypeParagraph ‘Error Object required.
ActiveDocument.Shapes.AddPicture(Anchor:=Selection .Range, FileName:= _
"E:My DocumentsMy PicturesPKSigSigPeter.jpg", LinkToFile:= _
False, SaveWithDocument:=True).WrapFormat.Type = wdWrapTight
Pos = Selection.MoveDown(Unit:=wdLine, Extend:=wdMove) ‘Error Object required.
'If there is more printing after signature so put in 2 lines so as not to move it
If Pos > 0 Then
Application.ScreenUpdating = True
2008-05-13, 09:28 #2
- Join Date
- Mar 2002
- Thanked 30 Times in 30 Posts
Re: Macros won' work (2007)
Outlook 2007 does use Word as mail editor, but in a slightly different way than previous versions. You'll have to modify your macros. See Convert recorded message body macros to Outlook 2007 for an example.