![]() |
|
#1
|
|||
|
|||
![]()
Hi Graham,
I have tried to adapt your code, and have the following Code:
Dim objMsg As MailItem ...... Set objMsg = objSourceFolder.Items.Item(intCount) It fails with a Type Mismatch on the above line. The original code had the variable type as variant? It appears to fail in the inbox, but only after going through about 60 emails that will not be processed.? Edit: I changed the variable objMsg to a variant in my code and your Getfolder proc and it works all the way through the folder? Last edited by Welshgasman; 12-18-2017 at 08:52 AM. Reason: Added change for variant |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
cutemich | Word VBA | 1 | 05-09-2017 06:27 PM |
![]() |
vagabond | Word | 7 | 05-02-2017 03:24 PM |
Linking to a spreadsheet in the same folder without folder path | Jacky837 | Excel | 0 | 07-30-2016 05:07 AM |
![]() |
carlandtina02 | Excel Programming | 3 | 04-15-2016 01:47 PM |
How to find the path to the downloads folder when it is different for each user | CatMan | Excel Programming | 2 | 12-07-2012 09:59 PM |