Do While, OnTime and CommandButtons

J

John Petty

Hello again.

I am trying to create a data logger Macro that at
intervals copies data from 1 worksheet to another and
adds the time and date it was logged. The trouble I am
having is that on the datacopy sheet, I have two command
buttons (1 - start, and 1 - stop), and I can't seem to
get the stop button to work.

Question 1: Is there a way that I can set a loop that can
set the intervals and have it loop until I press the Stop
button?

Question 2: How can I stop the macro (at least pause
vbmodeless), using a command button?

Thanks in advance,

John Petty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top