How do i create the outlook mail via VB script. For eks. i have some application and if i press "send mail" buttom then it opens the MS new mail in rich formate.
I did call the "outlook.application" it works but it open in HTML formate i stedes of rich text.
Kan det lad så gøre at opret mail i RFT formate via VBscript? Jeg har brugt outlook.application men det er i HTML format.
mvh Denny
Synes godt om
Slettet bruger
13. februar 2008 - 13:04#3
Outlook har en udemærket hjælpefil til vb: "C:\Program Files\Microsoft Office\OFFICE11\1030\VBAOL11.CHM"
Men svaret vil nu blive følg:
Dim olApp As Outlook.Application Dim objMail As MailItem Set olApp = Outlook.Application 'Create mail item Set objMail = olApp.CreateItem(olMailItem)
With objMail 'Set body format to HTML .BodyFormat = olFormatHTML ------------------------------------------- BodyFormat kan have følg. værdier: olFormatHTML olFormatPlain olFormatRichText olFormatUnspecified
Venligst
Jan
Synes godt om
Slettet bruger
18. oktober 2010 - 03:47#4
Imponerende.... Denne person har aldrig givet point
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.