R
RS200Phil
Hi,
I have implemented some Word VBA programming, run by several PC's on a
network, which uses Outlook 2003 to send an email with an RTF
attachment.
The programming couldn't be (much!) simpler - it is just a call to the
outlook "Sendmail" command...
Set lWordApp = New Word.Application
With lWordApp
.Documents.Open FileName:=sDir & "LetterTemplate.doc", _
ConfirmConversions:=False, ReadOnly:=False
.ActiveWindow.Selection.Paste
.ActiveDocument.SaveAs FileName:=sDestFile & ".doc",
FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=_
False, SaveNativePictureFormat:=False,
SaveFormsData:=False, _
SaveAsAOCELetter:=False
.ActiveDocument.SendMail
End With
lWordApp.Documents.close False
On every PC the new Word document is saved, the Outlook application
loads and the message appears in a "normal" Outlook message window.
This works fine on all but one of the PC's.
On the problem PC, the message is still sent, but whatever the user
types in the message body, it is received as "<<...>>". The attachment
goes fine. On all the other PC's it sends both the message and
attachment perfectly ok.
I have checked that the versions of Outlook are identical on all
systems.
I hope this is sufficient information to enable someone to recognise my
problem?
Thanks ever so much for your time.
Phil
I have implemented some Word VBA programming, run by several PC's on a
network, which uses Outlook 2003 to send an email with an RTF
attachment.
The programming couldn't be (much!) simpler - it is just a call to the
outlook "Sendmail" command...
Set lWordApp = New Word.Application
With lWordApp
.Documents.Open FileName:=sDir & "LetterTemplate.doc", _
ConfirmConversions:=False, ReadOnly:=False
.ActiveWindow.Selection.Paste
.ActiveDocument.SaveAs FileName:=sDestFile & ".doc",
FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=_
False, SaveNativePictureFormat:=False,
SaveFormsData:=False, _
SaveAsAOCELetter:=False
.ActiveDocument.SendMail
End With
lWordApp.Documents.close False
On every PC the new Word document is saved, the Outlook application
loads and the message appears in a "normal" Outlook message window.
This works fine on all but one of the PC's.
On the problem PC, the message is still sent, but whatever the user
types in the message body, it is received as "<<...>>". The attachment
goes fine. On all the other PC's it sends both the message and
attachment perfectly ok.
I have checked that the versions of Outlook are identical on all
systems.
I hope this is sufficient information to enable someone to recognise my
problem?
Thanks ever so much for your time.
Phil