A
aah-boy
Hi all,
Thanks for the help last night, but now I have hit another wall.
My code should loop round each message in the inbox, give me the time
received on my spreadsheet, pause - so I can change the problem
resolution and then give me the option of sending it back to the user.
Problem: How can I pause it after each .display of the email message?
It generates 100's of outlook windows!
Sorry this is more of an Outlook Q. than Excel, but I am kicking it
all off from within Excel - honest.
Here is my code...
For Each olMail In Fldr.Items
If InStr(olMail.Body, "PM123456") > 0 Or _
InStr(olMail.Subject, "PM123456") > 0 Then
'ActiveSheet.Cells(i, 1).Value = olMail.ReceivedTime
With olMail
.Display
End With
End If
Next olMail
Btw. the commented ActiveSheet line fails with 1004 - application
defined or object defined error.
Many thanks,
Dave
Thanks for the help last night, but now I have hit another wall.
My code should loop round each message in the inbox, give me the time
received on my spreadsheet, pause - so I can change the problem
resolution and then give me the option of sending it back to the user.
Problem: How can I pause it after each .display of the email message?
It generates 100's of outlook windows!
Sorry this is more of an Outlook Q. than Excel, but I am kicking it
all off from within Excel - honest.
Here is my code...
For Each olMail In Fldr.Items
If InStr(olMail.Body, "PM123456") > 0 Or _
InStr(olMail.Subject, "PM123456") > 0 Then
'ActiveSheet.Cells(i, 1).Value = olMail.ReceivedTime
With olMail
.Display
End With
End If
Next olMail
Btw. the commented ActiveSheet line fails with 1004 - application
defined or object defined error.
Many thanks,
Dave