Hello everyone, this is going to take a bit of background to explain the issue in detail. I've been working on this project for so long I'm going cross-eyed. It wouldn't surprise me if there's obvious problems that I can't see because my nose is too close to it - y'know?
Anyway.
The purpose: I've created a spreadsheet that has a series of event dates, deadline dates, and events. When a given event date is within a series of time frames (Event Date is 60 days from today - Event Date is 15 days from today...) VBA scoops up the name of the event lead, the event title, the event deadline date, and the date of the event. VBA then composes an email with this information in it and sends the email to the event lead. The event lead reads the email at what ever time (hence the several day buffer), and responds to the email with a series of answers, basically, "Yes", "No", or "Maybe"... VBA-Outlook listens to a designated email client for return responses and then decompiles the response body text into the useful tidbits. Who its from, what they responded to, and what their response was. This is then sent BACK to the Excel spreadsheet containing all the event data. The answers are marked in a designated spot and the next reminder ready to fire on the next event-deadline-window.
The problem: I can't get VBA to recursively perform this operation head to tail. IE determine next eligible event > email event lead > listen for response > mark response > determine next eligible event.
For this project to be worthwhile at all it must be entirely automatic. No human interaction necessary to make it work except when the wheels come off the wagon.
Every part of this project is built except whatever mechanism to cause VBA-Excel to repeat the macro again to cause an email to be sent. I can get from send an email to receive a response once per run. Simply calling it back into execution isn't working because there isn't a date range that fits criteria that happens every single day.
Tl;dr: I need my macro to run every time a date meets a criteria without having to interact with the spreadsheet. It also needs to be able to interact with Outlook to pass values back and forth. I don't know how to accomplish this with what I've built.
I can supply code as requested.
Guidance is deeply appreciated.
Thank you for your time and any assistance.
Anyway.
The purpose: I've created a spreadsheet that has a series of event dates, deadline dates, and events. When a given event date is within a series of time frames (Event Date is 60 days from today - Event Date is 15 days from today...) VBA scoops up the name of the event lead, the event title, the event deadline date, and the date of the event. VBA then composes an email with this information in it and sends the email to the event lead. The event lead reads the email at what ever time (hence the several day buffer), and responds to the email with a series of answers, basically, "Yes", "No", or "Maybe"... VBA-Outlook listens to a designated email client for return responses and then decompiles the response body text into the useful tidbits. Who its from, what they responded to, and what their response was. This is then sent BACK to the Excel spreadsheet containing all the event data. The answers are marked in a designated spot and the next reminder ready to fire on the next event-deadline-window.
The problem: I can't get VBA to recursively perform this operation head to tail. IE determine next eligible event > email event lead > listen for response > mark response > determine next eligible event.
For this project to be worthwhile at all it must be entirely automatic. No human interaction necessary to make it work except when the wheels come off the wagon.
Every part of this project is built except whatever mechanism to cause VBA-Excel to repeat the macro again to cause an email to be sent. I can get from send an email to receive a response once per run. Simply calling it back into execution isn't working because there isn't a date range that fits criteria that happens every single day.
Tl;dr: I need my macro to run every time a date meets a criteria without having to interact with the spreadsheet. It also needs to be able to interact with Outlook to pass values back and forth. I don't know how to accomplish this with what I've built.
I can supply code as requested.
Guidance is deeply appreciated.
Thank you for your time and any assistance.