Hi,
I've made a workbook for my son to practice his times tables.
It has 2 buttons:
'Start' unlocks the sheet, generates random numbers for the sums and does some formatting then relocks the sheet.
'Stop' unlocks the sheet, checks the answers and relocks the sheet.
I would like to add a countdown timer which gets the time (in seconds) from cell C1 and then counts down this time in cell F1
When the stop button is clicked I would like it to stop the timer and run the 'checking' code or if the timer reaches 0 I would like it to run the checking code.
I have tried lots of different code to do this (I've spent the last 3 nights pulling what's left of my hair out trying to get it to work!) but without success. The closest I got was some code which would do the timer but as soon as you clicked into a cell the countdown stopped.
I know similar questions have been asked, but I just can't get it to work!
My VBA coding doesn't go beyond recording macros or copying code then (trying to) modify it to make to work - beginner +1
Please help! The file is in my dropbox here:
http://db.tt/Z1lbI8N
Thanks, Melbridge.
I've made a workbook for my son to practice his times tables.
It has 2 buttons:
'Start' unlocks the sheet, generates random numbers for the sums and does some formatting then relocks the sheet.
'Stop' unlocks the sheet, checks the answers and relocks the sheet.
I would like to add a countdown timer which gets the time (in seconds) from cell C1 and then counts down this time in cell F1
When the stop button is clicked I would like it to stop the timer and run the 'checking' code or if the timer reaches 0 I would like it to run the checking code.
I have tried lots of different code to do this (I've spent the last 3 nights pulling what's left of my hair out trying to get it to work!) but without success. The closest I got was some code which would do the timer but as soon as you clicked into a cell the countdown stopped.
I know similar questions have been asked, but I just can't get it to work!
My VBA coding doesn't go beyond recording macros or copying code then (trying to) modify it to make to work - beginner +1
Please help! The file is in my dropbox here:
http://db.tt/Z1lbI8N
Thanks, Melbridge.