This is a real kludge but it might work. Basically you ping a non-existant IP address (1.1.1.1) but delay it for x milliseconds (10000 = 10 seconds). Then you kill the task to close the window.
This will close the whole of excel down after the delay. If you want to close only the popup then excel later on, I don't think that can be done with the batch file, you'd need some macro software.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.