This may be a lot to ask of anyone to investigate. I have a Macro that I built up over a couple weeks that does exactly what I need. Refreshes my data, Creates an image of a range, Pastes that image into an email that is structured in the VBA and sends it to desired people with appropriate fields. Updates the last run time on the main sheet, Saves the open book, then saves it to a shared location without the macros, Then Closes.
Runs beautifully when I hit play. The issue comes when I allow windows task to run it for me at 1 in the morning. For some reason it is freezing before sending the paste command. I come in and the email is sitting open waiting to be sent without the image pasted!? Sometimes (Most of the time) the email will then send without the image before I have a chance to click/edit and/or close it.
My question is first blanketed without looking at the code - are there known causes of this behavior?
If not, or even if so... feel free to peruse through my code and poke holes in it so that it can be enhanced please.
Thanks,
So to start everything Windows has a task to open the document at 12:59a
Then I have in "ThisWorkbook" the following Private sub to run on time value XX
Then in Module 1 is the macro list of actions as follows![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks