This is just a portion of my codes. Basically, this For Loop is supposed to loop through all the attachments of an outlook mail item. If the mail item has one attachment, it would loop through and save that mail item to the correct folder, but then for some reason it loops through again trying to read the second attachment when there is only one attachment. Why does this code do that? How come it did not stop because the mail item only has one attachment? It gives me an error because it couldn't find a second attachment.
Bookmarks