I have an excel spreadsheet with two columns, one with a list of exercises (33 of them) and a number of reps for each. What I really want is a program that picks a random exercise, displays it with it’s number of reps, and has a button that says something like “Done?” When you click it, I want a timer that counts down 20 minutes, picks a new exercise and waits until you click done, and repeat.
I know this isn’t hard, but I am no programmer by any means. If anyone has a tutorial or another way of doing this (flash?), I would really appreciate it.
Thanks in advance,
Jay
What you are asking for is not too difficult but not that easy to explain if you are not used to using userforms etc.
Instead, I have come up with a more simplified solution that may suit your needs. For the purpose of this solution, I am assuming all your exercises are listed in column A and reps in column B. The following code will randomly select an exercise, highlight the chosen selection, and then in column C show a countdown from 20 mins to 0 at 1 minute intervals. As a visualisation:
To achieve this, first add the following code into a module (Alt + F11, then Insert > Module)
Finally, on your spreadsheet you will need a way of starting the code.
Select View > Toolbers > Forms and then from the menu click
Buttonand draw it anywhere on your spreadsheet. In the Assign Macro dialog box you should see ‘StartExercise’ as an option. Select this option and click ok.Now when you click your button you should see an exercise and number of reps become highlighted in bold, red font and ’20 mins’ appear next to it. This will then countdown to 0 mins. If you then click the button you can start all over again with a random exercise.
Hope this helps.