Hi
Im working in the excel macros and i have a problem.
Does anyone tell me how to stop a method that is runing whithout stop the all program, i explain.

Im using a time function that's is always runnig until closing the excel
Problem:
if someone calls the macro two times the funcition will exectue 2 times the same method.
Solution: I need to stop the first macro who's still runnig, or the expecific function.

how:?

Does anybody know a solution for the problem.
Thanks!!!!