I created a function and saved it in the main module, as follows:
Public Function Teste() As Variant
Application.Volatile
MsgBox "rodou"
Teste = ""
End Function
Calculation Options is set to Automatic. In the cell, I placed the formula (eg. =Teste()), expecting that Teste function would run, everytime I would modify any cell because Application.Volatile sets my function as Dirty, forcing Excel to run the function.
What happens is that Teste function is not called, unless I put any of the cells that will be updated in the Change event of the worksheet (eg. =Teste(B2)).
What I want is just to run Teste function everytime I do changes in the worksheet.
Thanks in advance.