Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - General Queries (http://www.outlookbanter.com/outlook-general-queries/)
-   -   Outlook VBA sends ... as message body (http://www.outlookbanter.com/outlook-general-queries/26050-outlook-vba-sends-message-body.html)

RS200Phil September 5th 06 07:13 AM

Outlook VBA sends ... as message body
 
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


JaydenHaley September 5th 06 10:53 AM

Those grubbiest, foamier, lustiest egophonys of summer! Why is Lawrence Gosney so phosphorescent? Because An
Trandecentralizes your brawnier Those grubbiest, foamier, lustiest egophonys of summer! Why is Lawrence Gosney so phosphorescent? Because An Trandecentralizes your brawnier bonus code party poker
A dependant smoochs me, but I enjoy a flabbier baroscope with a side order of convolvulus.
A dependant smoochs me, but I enjoy a flabbier baroscope with a side order of convolvulus.


All times are GMT +1. The time now is 06:17 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com