Thanks for following up, much appreciated. I will let this go after asking the question again about how a Change event for A1 can work for you in this case.
You wrote:
"I would like to trigger a macro if cell a1=the last day of any month..."
I asked:
"Depends on how that value got into A1. Was it returned from a formula in A1? Is it manually entered?..."
You answered:
"It is from a formula (Today()-1)"
To me, that means there is a formula in cell A1 which is =Today()-1
You received 3 suggestions. Two were the same in principal, they being a Change event for cell A1 only, meaning that an event would only be triggered if manual entry or edit took place in cell A1. If there really is a formula in cell A1, then any entry in A1 would destroy the formula.
The third suggestion was mine, which assumed based on your answer that there was a formula in A1, and so my code used a Calculation event to trigger an action based on when A1's formula returns the last day of a given month.
If there is not and never was a formula, then I don't understand your answer to my question about how the date got into A1 and you saying by a formula.
If there is a formula, then why allow a user to enter a new date in it, which would change the design of the spreadsheet.
The Change events you received would do the job based on manual entry of a date in A1, but that was not what you said you had...you said there was a formula in A1 so that is why I kept wondering what was really happening.
OK, thanks again for the post; I'll move off this but my curiosity got the better of me.