Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Patterson Lakes, Melbourne, Victoria, Australia
    Posts
    637
    Thanks
    0
    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:
    Sub SigPeter()
    ' 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
    Selection.TypeParagraph
    Selection.TypeParagraph
    End If
    Application.ScreenUpdating = True
    End Sub
    Regards,
    Peter

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •