October 6th, 2010, 5:02 pm
I have some real simple sample code shown below that executes every time a user changes a cell in the worksheet (the code is a property of a single sheet). Let say I have some real-time feeds in the spreadsheet (say reuters or bloomberg), is there a worksheet event that would detect each time one of the feed values changes (not just when the user manually changes a value, but when the feed is automatically updated)?*******************************Private Sub Worksheet_Change(ByVal Target As Range) If Range("ask").Value >= Range("high").Value Then Application.EnableEvents = False Range("high").Value = Range("ask").Value Application.EnableEvents = True End If If Range("bid").Value <= Range("low").Value Then Application.EnableEvents = False Range("low").Value = Range("bid").Value Application.EnableEvents = True End IfEnd Sub*******************************In the above example, there are 4 range names, bid, ask, high, low - the sub updates the high and low based upon the current bid and ask. The check is currently performed each time the user updates a cell in the worksheet. I want it to execute each time the real time feeds update.