Although this code is run from Excel, I presume this is an Outlook issue.
I want to go though all the messages in a specific folder, save the attachment and then move the message to a sub folder. The following code reads the messages in the folder. That's as far as I can get.
The first failure is on this line:
I get the error "The attempted operation failed. An object could not be found." The line above it works. I have confirmed that the SubFolder does exist.![]()
Please Login or Register to view this content.
OK,so we comment that out and let's try to save the attachment.
Both of these incantations fail with "Object variable with block variable not set." It knows the Excelfolder (again confirmed that it does exist) but doesn't like Filename or Displayname.![]()
Please Login or Register to view this content.
And of course, I can't even get to
until I get the other problems fixed.![]()
Please Login or Register to view this content.
Here's the full code - it works only because I have the parts I want to do commented out.
![]()
Please Login or Register to view this content.
Bookmarks