bigdaddy00
New Member
- Joined
- Mar 14, 2022
- Messages
- 3
- Office Version
- 2016
- Platform
- Windows
I have this code to click between two cells back and forth every minute for an hour but i'm trying to make it into two buttons so i can have it run continuously and click a stop button when needed. This code i've pasted gives the blue wheel and doesn't allow me to click anything with excel. Help would be much appreciated, thank you.
Range("A1").Select
Application.Wait (Now + TimeValue("00:01:00"))
For a = 1 To 60
ActiveCell.Offset(1, 0).Select
Application.Wait (Now + TimeValue("00:01:00"))
ActiveCell.Offset(-1, 0).Select
Application.Wait (Now + TimeValue("00:01:00"))
Next a
End Sub
Range("A1").Select
Application.Wait (Now + TimeValue("00:01:00"))
For a = 1 To 60
ActiveCell.Offset(1, 0).Select
Application.Wait (Now + TimeValue("00:01:00"))
ActiveCell.Offset(-1, 0).Select
Application.Wait (Now + TimeValue("00:01:00"))
Next a
End Sub