Hi everyone,
I'm new to timers so I could use help. Basically this timer runs every second and calls "main" sub. How can I increase "i" by 1 every time it runs? I would like it to read each cell in Column A every second. Thanks!
I'm new to timers so I could use help. Basically this timer runs every second and calls "main" sub. How can I increase "i" by 1 every time it runs? I would like it to read each cell in Column A every second. Thanks!
Code:
Sub Timer()
Application.OnTime Now + TimeValue("00:00:01"), "Main"
End Sub
Sub Main()
Dim i As Long
Dim x As String
i = 1
x = Worksheets("Sheet1").Cells(i, 1).Value
MsgBox x
Timer
End Sub