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

Detect Meeting Responses



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 4th 07, 05:41 AM posted to microsoft.public.outlook.program_vba
Rod Gill
external usenet poster
 
Posts: 2
Default Detect Meeting Responses

Hi,

I can successfully loop thru all messages in the Sent Items folder until the
code reaches a Meeting Response item. At that point there is a type
conflict. How can I detect a meeting response so I can ignore it and
continue with the loop?

Code below is passed Fldr already ponting to Sent Items and a recordset thru
which information is being saved to a database.


Sub SaveSentEmails(Fldr As MAPIFolder, rs As ADODB.Recordset)
Dim Email As MailItem
Dim Emails As Items
On Error Resume Next
With rs
For Each Email In Fldr.Items
'Only save future appointments
If Not Email Is Nothing Then
If Email.SentOn LastDate Then
.AddNew
!FolderName = Fldr.Name
!Sent = Email.SentOn
!Subject = Left$(Email.Subject, 98)
!To = Left$(Email.To, 50)
!Details = Email.Body
!DateAdded = Date
If Err 0 Then
Beep
End If
.Update
End If
End If
Next
End With
End Sub


Many Thanks,
--

Rod Gill


 




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
Not Sending All Meeting Request Responses Shel Outlook - Calandaring 0 March 16th 07 02:14 PM
Outlook meeting responses deisappears? Malin Outlook - Calandaring 0 November 15th 06 08:04 AM
No more meeting invitation responses Jeff Outlook - Calandaring 3 April 13th 06 02:19 AM
Meeting Responses Eric Outlook - Calandaring 1 February 7th 06 06:24 AM
Responses to a meeting request are not tracking 2ndN@ture Outlook - Calandaring 0 January 9th 06 08:40 PM


All times are GMT +1. The time now is 10:56 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-2025 Outlook Banter.
The comments are property of their posters.