Stop help me please because it becomes too complicated. It's very simple you know. There is no problem in my custom function. I repeat again and again everything works fine. The only thing I wonder is why sometimes the Excel events does not work properly. Because if I validate my function by clicking the green check button beside the command line it will be refreshed correctly. The problem with the events.