C
Cheryl1325
Can anyone please help; 2007 says REQUIRES OBJECT.
Is there something I cann add to this macro to have it work in Outlook 2007?
Many thanks from a real desperado.
Sub Macro 55()
'
'
Documents.Open FileName:="c:\EmailText.txt", ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto,
XMLTransform:="", _
Encoding:=1252
Selection.WholeStory
Selection.Copy
ActiveDocument.Close
Selection.PasteAndFormat (wdPasteDefault)
Documents.Open FileName:="c:\EmailText.txt", ConfirmConversions:=False,
ReadOnly:= _
False, AddToRecentFiles:=False, PasswordDocument:="",
PasswordTemplate:= _
"", Revert:=False, WritePasswordDocument:="",
WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto, XMLTransform:="", Encoding:=1252
Selection.WholeStory
Selection.Copy
ActiveDocument.Close
Selection.PasteAndFormat (wdPasteDefault)
Selection.TypeBackspace
Selection.InsertFile FileName:="c:\EmailText.pdf", Range:="",
ConfirmConversions:= _
False, Link:=False, Attachment:=True
Selection.HomeKey Unit:=wdStory
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=2, Extend:=wdExtend
End Sub
Is there something I cann add to this macro to have it work in Outlook 2007?
Many thanks from a real desperado.
Sub Macro 55()
'
'
Documents.Open FileName:="c:\EmailText.txt", ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto,
XMLTransform:="", _
Encoding:=1252
Selection.WholeStory
Selection.Copy
ActiveDocument.Close
Selection.PasteAndFormat (wdPasteDefault)
Documents.Open FileName:="c:\EmailText.txt", ConfirmConversions:=False,
ReadOnly:= _
False, AddToRecentFiles:=False, PasswordDocument:="",
PasswordTemplate:= _
"", Revert:=False, WritePasswordDocument:="",
WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto, XMLTransform:="", Encoding:=1252
Selection.WholeStory
Selection.Copy
ActiveDocument.Close
Selection.PasteAndFormat (wdPasteDefault)
Selection.TypeBackspace
Selection.InsertFile FileName:="c:\EmailText.pdf", Range:="",
ConfirmConversions:= _
False, Link:=False, Attachment:=True
Selection.HomeKey Unit:=wdStory
Selection.MoveRight Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=2, Extend:=wdExtend
End Sub