试试延时一下,再删除。
Dim sdt As Date = Date.NowWhile Date.Now < sdt.AddSeconds(10) Application.DoEventsEnd While
msgbox("10秒后执行")