Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default % completed box

I have a rather lengthy macro that basically loops through a long list of
company names. This macro takes appr. 20 minutes to run and therefore I would
like to give the user some idea of how long time has gone/is left. What I
would like is some sort of a message box that shows where the process is in
the code. I have an integer that is the length of the list and another
variable that is a counter. In terms of code:
Assume i = position and k = length of list.

For i= 1 to k
€¦€¦do some stuff
Next

Thus it would be really nice if I could have some message box that shows eg:
Msgbox €œNumber of companies searched: €œ & I & €œ. Total number of companies:
€œ & k

Or something like that. Please help how to construct such a thing. Thank you
very much!!!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default % completed box

Use a progress meter. Robin Hammond has a nice one at

http://www.enhanceddatasystems.com/E...rogressBar.htm

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Arne Hegefors" wrote in message
...
I have a rather lengthy macro that basically loops through a long list of
company names. This macro takes appr. 20 minutes to run and therefore I

would
like to give the user some idea of how long time has gone/is left. What I
would like is some sort of a message box that shows where the process is

in
the code. I have an integer that is the length of the list and another
variable that is a counter. In terms of code:
Assume i = position and k = length of list.

For i= 1 to k
..do some stuff
Next

Thus it would be really nice if I could have some message box that shows

eg:
Msgbox "Number of companies searched: " & I & ". Total number of

companies:
" & k

Or something like that. Please help how to construct such a thing. Thank

you
very much!!!



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
Time Completed hawaiiham2000 Excel Worksheet Functions 7 February 28th 09 12:33 AM
Finding the last completed row Eric Excel Discussion (Misc queries) 2 December 12th 08 10:45 PM
If A1=X cell d1 must be completed before row 2 can be used Paul07 Excel Worksheet Functions 1 September 26th 08 06:59 AM
IF completed THEN invisible lmv Excel Discussion (Misc queries) 9 November 22nd 06 03:35 PM
know when the job of print is completed? sal21[_24_] Excel Programming 0 June 17th 04 11:04 AM


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