A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

item



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 9th 06, 07:43 PM posted to microsoft.public.outlook.program_vba
Paula
external usenet poster
 
Posts: 1
Default item

I send email through Word creating an outllok.object and i put as body this
routine

Open txtFile For Input As #1
Do While Not EOF(1)
Line Input #1, cTemp
ll = ll & cTemp & vbNewLine
Loop
Close #1

with objItem
.body = ll
....
end with

There is a way to use a saved messaged in drafts and reading it or copying
it
instead of this code?

tia, Paula


Ads
  #2  
Old January 10th 06, 09:44 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default item

Am Mon, 09 Jan 2006 18:43:16 GMT schrieb Paula:

Example for getting the first item from the drafts:

dim oMail as Outlook.MailItem
dim obj as object
with application.Session.GetdefaultFolder(olFolderDraft s).Items
if .count Then
Set obj=.Item(1)
If TypeOf obj is Outlook.MailItem Then
' Get a copy of the draft
Set oMail = obj.Copy
endif
endif
End with


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook



I send email through Word creating an outllok.object and i put as body

this
routine

Open txtFile For Input As #1
Do While Not EOF(1)
Line Input #1, cTemp
ll = ll & cTemp & vbNewLine
Loop
Close #1

with objItem
.body = ll
....
end with

There is a way to use a saved messaged in drafts and reading it or

copying
it
instead of this code?

tia, Paula

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Item Forwarding BigMike044 Outlook - Calandaring 0 February 14th 06 09:13 PM
Forwarding a news item Jeff Needle Outlook - General Queries 0 February 10th 06 06:33 PM
Create a new item jim Add-ins for Outlook 3 February 8th 06 03:16 PM
Catch the item I just sent Sharad Naik Add-ins for Outlook 2 January 27th 06 05:15 PM
calendar item Sue Mosher [MVP-Outlook] Outlook - Calandaring 5 January 24th 06 08:17 PM


All times are GMT +1. The time now is 05:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.