Hello Everyone,

I was looking for the solution for few days, without success, so that`s why I am creating this thread - Hopefully no duplicated.
Below code is working very well, for the last 2 weeks I have been redesigning and adding new stuff to it, works great, with small but...

Macro stops working (without errors etc) after +/- midnight (actual time depends if it runs on Windows Server or Desktop Windows).
Code is waiting for new mail in specified folder in inbox, when new object appears macro is checking for details and with all "if`s" decide what to do: Ignore or retrieve attachments and save it to specified folders on computer.

I was looking for solution, experimenting with ontime method, but still code which is triggered by new object is the best for my needs. I found, not to elegant solution, to restart outlook (scheduled in windows) around "problematic" hour and it ... works, but i prefer to have it as simple as possible. Looking for answers I found that people are using similar code, which works without stopping or problems.

Thank You in advance for reply!

Please Login or Register  to view this content.