Excel VBA script - stealing focus
问题 I'm working on a script that pings computers from a list periodically and returns information. My problem is, whenever the the script is running, it steals focus from other excel windows. For example if if I'm typing in another workbook when the scrip runs, it jumps (to the cell that was last selected) and continues writing in the cell. Here is the script: Sub autoping_cb() Dim c As Range Dim thePing As Variant Dim TryCount As Integer Dim TryAgainCount As Integer Dim TryNextRun As Boolean