Hello,
I have a spreadsheet that pulls auction data through an API every Friday morning. Currently I just hit a simple vba that refreshes the workbook whenever I hit the "Refresh" tab and then it sends out a pdf through email.
I want to update the vba to automatically refresh the workbook every 5 minutes or so and if a new sale comes out (which would be reflected by a "Final" in B8-B12 and B15:B19 or by a number in C8-C12 and C15:C19) then an email would get sent out with the new sale data. But if none of the 10 sales have been released during those five minutes then the VBA just sits and refreshes again. I also want to set some criteria so that the VBA know that a sale has already been set out today so it doesn't send out again after the next 5 minute cycle. Not all of the ten sales are released each week so I also need a toggle to shut down the vba whenever I know there are no more sales for the week Friday afternoon.
I hope that makes sense. I am just really stuck on how to approach this and would really appreciate any advice anyone has. Thank you.
I have a spreadsheet that pulls auction data through an API every Friday morning. Currently I just hit a simple vba that refreshes the workbook whenever I hit the "Refresh" tab and then it sends out a pdf through email.
I want to update the vba to automatically refresh the workbook every 5 minutes or so and if a new sale comes out (which would be reflected by a "Final" in B8-B12 and B15:B19 or by a number in C8-C12 and C15:C19) then an email would get sent out with the new sale data. But if none of the 10 sales have been released during those five minutes then the VBA just sits and refreshes again. I also want to set some criteria so that the VBA know that a sale has already been set out today so it doesn't send out again after the next 5 minute cycle. Not all of the ten sales are released each week so I also need a toggle to shut down the vba whenever I know there are no more sales for the week Friday afternoon.
I hope that makes sense. I am just really stuck on how to approach this and would really appreciate any advice anyone has. Thank you.