In the application.Sum part you have to specify which sheet you want this to be executed.