Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default visible counter

I have a rather large loop (7,000+) that takes 4-5 minutes to run all the
way through. I would like to know my status in the loop as it progresses.
How do I get something like "2345 of 7000" to constantly show in the bottom
status bar (or elsewhere). I am assuming it will not slow the run time much
if at all. Thanks, Mike Allen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default visible counter

Hi Mike,

See John Walkenbach at:


http://www.j-walk.com/ss/excel/tips/tip34.htm


---
Regards,
Norman

"mike allen" wrote in message
...
I have a rather large loop (7,000+) that takes 4-5 minutes to run all the
way through. I would like to know my status in the loop as it progresses.
How do I get something like "2345 of 7000" to constantly show in the bottom
status bar (or elsewhere). I am assuming it will not slow the run time
much if at all. Thanks, Mike Allen



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default visible counter

for i = 1 to 7000
application.StatusBar = i & " of 7000"
Next

' return StatusBar to Excel
application.StatusBar = False

or

for i = 1 to 7000
if i mod 100 = 0 then
application.StatusBar = i & " of 7000"
end if
Next


--
Regards,
Tom Ogilvy

"mike allen" wrote in message
...
I have a rather large loop (7,000+) that takes 4-5 minutes to run all the
way through. I would like to know my status in the loop as it progresses.
How do I get something like "2345 of 7000" to constantly show in the

bottom
status bar (or elsewhere). I am assuming it will not slow the run time

much
if at all. Thanks, Mike Allen




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default visible counter


mike allen Wrote:
I have a rather large loop (7,000+) that takes 4-5 minutes to run all
the
way through. I would like to know my status in the loop as it
progresses.
How do I get something like "2345 of 7000" to constantly show in the
bottom
status bar (or elsewhere). I am assuming it will not slow the run time
much
if at all. Thanks, Mike Allen


Not sure what the loop is but if it's a FOR/NEXT loop then this would
do the trick.

For n = 1 To 7000
' Whatever your loop is doing
Sheets("Sheet1").Range("A1") = n
Next n

This will count up from 1 to 7000 in cell A1
I've used Sheet1 as the name for my worksheet, you would have to
substitute this for the name of your worksheet.


--
grahammal
------------------------------------------------------------------------
grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336
View this thread: http://www.excelforum.com/showthread...hreadid=484750

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
Worksheet has to set to visible as it is not visible after saving and closing Excel by VB. Oscar Excel Programming 6 June 21st 05 10:39 PM
Autoshapes not visible on spreadsheet but visible in print preview John Excel Discussion (Misc queries) 3 February 11th 05 10:23 PM
Toggle text to be visible and not visible Dave Y[_3_] Excel Programming 3 January 10th 04 07:27 PM
Toggle Text to be visible and Not visible Dave Y[_3_] Excel Programming 1 January 10th 04 07:16 PM
Toggle Text in a column to be visible or not visible Dave Y[_3_] Excel Programming 4 January 8th 04 08:46 PM


All times are GMT +1. The time now is 11:12 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"