Hello, this is my first post here and I am a bit of a newb and experimentor with VBA. I have a bit of a problem to solve and can't seem to solve it myself, and was wondering of any of you may know of a solution to this anywhere.
What im trying to achieve is to send an automated report to myself. This copies the cell range and then emails that range to me. To do this I run windows schedular to open a specific Excel spreadsheet at a specific time each day. In the spreadsheet I have set this up to automatically run the below script in the background:
It all works well! Now I wish to add a function to the source when a date or value in a cell equals the same as a date/value in another cell then the above Send_Range() contunies to run. I think I need to insert the code within the Send_Range() befoe the Active.Range() function? But I could be wrong.
I need to keep this as simple as possible so that I also understand it too, I understand these codes but can't seem to include the "if" function below to run.
Basically the function would run if cell A3 = B3 and so on but if non of them are equal then the email does not send.
Appologies if this seems silly or if it is a good laugh, I'm glad I made you smile to the more advanced programmers but I really want to understand this. Any help would be greatly appreciated.
Thank you.
Bookmarks