I am not sure your test environment. Is the “Enable Tabs” set? If you are using the Tabs, you won’t be able to close a new tab that is created during the macro because the “Confirm” dialog box is the foreground window. If the Enable Tabs is not set, you can close a new created window during the macro, but the macro will continue as expected. Please explain the detail procedure to reproduce the issue.