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