I was able to get Ravishankar's code to work for me. But while the timer is running the DDE link is not updated. Any sugestions?
Have progressed to this point I need a variable in timeValue that I can minuplate
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Dim z As Long
'For z = 1 To 10
Application.OnTime Now + TimeValue("00:00:15"), "capture_Data"
Application.OnTime Now + TimeValue("00:00:30"), "capture_Data"
Application.OnTime Now + TimeValue("00:00:45"), "capture_Data"
Application.OnTime Now + TimeValue("00:01:00"), "capture_Data"
Application.OnTime Now + TimeValue("00:01:15"), "capture_Data"
Application.OnTime Now + TimeValue("00:01:30"), "capture_Data"
'Next z
End Sub
That way I will not have to enter all these times. I would need 96 of them for a 24 hour day. Itried to call this over and over as a function then as a macro but it never resets to now it continues from start of application.
Bookmarks