LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Static variable

Hi, In one sub Im using a static variable to keep count. With this Im
using a timer to run through the macro at certain intervals. On a
userform I use 2 command buttons, one to start the timer and another
to stop the timer. This all works well apart from when I stop the
timer, then restart my Static continues from its last count. In the
sub with the static variable I can use 'Erase whatever'. Because the
Stop command does not execute that sub, is there a way to globally
clear the static variable without closing the workbook.
Regards Robert

 
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
STATIC VARIABLE NOT AVAILABLE IN ANOTHER MODULE CAPTGNVR Excel Discussion (Misc queries) 2 February 1st 07 07:30 PM
Static variable cottage6 Excel Programming 0 June 24th 05 07:52 PM
NOT static variable problem Neal Zimm Excel Programming 4 April 22nd 05 04:38 PM
Static Variable Todd Huttenstine Excel Programming 7 May 7th 04 11:16 AM


All times are GMT +1. The time now is 07:52 PM.

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"