Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Do While, OnTime and CommandButtons

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Do While, OnTime and CommandButtons

Take a look at Chip Pearson's web site:
http://www.cpearson.com/excel/ontime.htm

He has two macros--one to start and one to stop and a public runwhen variable.
(He didn't assign them to buttons, though.


John Petty wrote:

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


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find %ontime & SUMIF ontime ie: find matching sets within Range... Chris T-M Excel Worksheet Functions 3 October 10th 08 08:14 PM
Can I print different areas of a spreadsheet using CommandButtons Guy B Machan Excel Discussion (Misc queries) 1 April 16th 08 01:50 AM
Make CommandButtons Not Visable With A Macro Minitman Excel Worksheet Functions 7 April 1st 08 05:55 AM
.ontime Grrrrrumpy Excel Discussion (Misc queries) 2 April 8th 07 04:18 PM
commandbuttons properties Rui[_2_] Excel Programming 2 November 5th 03 04:07 PM


All times are GMT +1. The time now is 05:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"