Make a list of Readreceipts' username

P

papou

Hi all
Outlook 2000 SR1
I would like to write a text file with each name from a list of readreceipts
received in a folder.
I know how to do the 1st part (ie writing to a text file with VBA) but as
for the 2nd part, I have tried this below but obviously can't get any
further.

'**** START ****
Dim myFolders As Folders
Set myFolders = _
Application.ActiveExplorer.CurrentFolder.Folders
With myFolders.Item("Reçus comDS").Items
For i = 1 To .Count
MsgBox .Item(i).UserProperty
Next i
End With
'**** END ****

Can somebody help?
TIA

Cordially
Pascal
 
E

Eric Legault [MVP - Outlook]

What information from the read receipts are you trying to output to the file?
If you want to output the message subject, for example, this is how you
would do it:

Dim objItem As Object, strSubject As String

With myFolders.Item("Reçus comDS").Items
For i = 1 To .Count
Set objItem = myFolders.Item("Reçus comDS").Items(i)
strSubject = objItem.Subject
'Output strSubject to your file
Next i
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top