Im trying to get my computer to e-mail me (to my mobile) a periodic market report when Im away from my screen. For example, option prices, daily portfolio P&L and other bits and pieces. I have the code to send e-mails and use a function to call it. For example;
Sub MyMacro()
SendEmail
End Sub
MyFunction()
Call MyMacro
End Function
In cell A2 I will write
=IF(A1=20,MyFunction(),)
So if cell A1 hits 20 the function will call the macro which will then send me an email. Here is the problem;
How do I instruct to send JUST ONE e-mail and then no more ? Because the way its set up at the moment it will continue sending e-mails for as long as the value in cell A1 is 20. Ive tried writing into the Sub to change the value of cell A1 to 0, but then when I run the procedure it gives a circular reference, which I suppose is logical. I'm stuffed !
Bookmarks