Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Different Kind of Progress Bar...

I have a lengthy procedure for which I would like to display a progress bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and rows based
on certain criteria (the number varies between files), closes the file,
then goes from worksheet to worksheet (8 total) in the original and deletes
rows to match the new number, opens a different file for another purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the percentage, and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very noticeable.

Any help is greatly appreciated,
Denny


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Different Kind of Progress Bar...

If it's helpful my progress bar class has three distinct captions you can
write messages to while your code is progressing.

e.g. you could write

Updating files
FileName
Worksheet

Have a look here
http://www.enhanceddatasystems.com/E...rogressBar.htm

You could easily adapt it to hide the actual progress bar if you are
concerned about showing percentages.

Robin Hammond
www.enhanceddatasystems.com

"Father Guido" wrote in message
...
On Sun, 8 Feb 2004 21:20:20 -0500, "Denny Behnfeldt"
wrote:

I have a lengthy procedure for which I would like to display a

progress bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that

can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and

rows based
on certain criteria (the number varies between files), closes the

file,
then goes from worksheet to worksheet (8 total) in the original and

deletes
rows to match the new number, opens a different file for another

purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the

percentage, and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very

noticeable.

Any help is greatly appreciated,
Denny


After each section is finished, just update a screen message, turn on
screenupdating, then turn off. Repeat after each section until
finished.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Different Kind of Progress Bar...

You control the progress bar. You would have to make a decision on how much
progress to indicate based on what is being done.

So, yes, a progress bar would be feasible, but your code has to control it.

--
Regards,
Tom Ogilvy


Denny Behnfeldt wrote in message
...
I have a lengthy procedure for which I would like to display a progress

bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that

can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and rows

based
on certain criteria (the number varies between files), closes the file,
then goes from worksheet to worksheet (8 total) in the original and

deletes
rows to match the new number, opens a different file for another purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the percentage,

and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very noticeable.

Any help is greatly appreciated,
Denny




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Different Kind of Progress Bar...

Denny,

I have had the same sort of problem, so what I did was to create a progress
bar that had two parts. I would add that the progress bar was a userform, so
it was ' in the user's face, not status bar type. The first part was a
simple text message that indicated what point in the process had been
reached, and was set by my code at the start of each distinct step. This
gives the user feedback on the real progress. In addition I had an actual
progress bar that gets updated, incrementing the bar, in the accepted sense.
The point about the progress bar, I don't worry about whether I am 20%, 30$,
or whatever, I just update it to give the visual feedback that the
application is still working. If, and when, it gets to the end, I just
restart it, because as I say, it is a visual prompt.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Denny Behnfeldt" wrote in message
...
I have a lengthy procedure for which I would like to display a progress

bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that

can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and rows

based
on certain criteria (the number varies between files), closes the file,
then goes from worksheet to worksheet (8 total) in the original and

deletes
rows to match the new number, opens a different file for another purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the percentage,

and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very noticeable.

Any help is greatly appreciated,
Denny




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Different Kind of Progress Bar...

You could break your long process into a number of sub-processes. You
could then show the list of processes and indicate progress by visibly
checking each when it is complete. Alternatively, you could estimate
what proportion of the total time is taken by each process and
increment a conventional progress bar (Robin Hammond's looks quite
nice <g) when each is complete.

The important thing is to reassure the user the machine hasn't crashed
an that something is happening. IE has a progress bar which simply
counts up in seconds and shoots up to max when complete!

--

"Denny Behnfeldt" wrote in message ...
I have a lengthy procedure for which I would like to display a progress bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and rows based
on certain criteria (the number varies between files), closes the file,
then goes from worksheet to worksheet (8 total) in the original and deletes
rows to match the new number, opens a different file for another purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the percentage, and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very noticeable.

Any help is greatly appreciated,
Denny



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Different Kind of Progress Bar...

Onedaywhen's biased. He came up with the fancy coloured bar technique I now
use!

Robin Hammond
www.enhanceddatasystems.com

"onedaywhen" wrote in message
om...
You could break your long process into a number of sub-processes. You
could then show the list of processes and indicate progress by visibly
checking each when it is complete. Alternatively, you could estimate
what proportion of the total time is taken by each process and
increment a conventional progress bar (Robin Hammond's looks quite
nice <g) when each is complete.

The important thing is to reassure the user the machine hasn't crashed
an that something is happening. IE has a progress bar which simply
counts up in seconds and shoots up to max when complete!

--

"Denny Behnfeldt" wrote in message

...
I have a lengthy procedure for which I would like to display a progress

bar.
I have seen several excellent variations based on "percentage done".
My problem is that this procedure does a lot of different things that

can't
be easily translated to a percentage. Examples:
It opens another file, formats it by deleting various columns and rows

based
on certain criteria (the number varies between files), closes the file,
then goes from worksheet to worksheet (8 total) in the original and

deletes
rows to match the new number, opens a different file for another

purpose,
etc.
In other words, couId I use a progress bar to indicate events being
performed, instead of percentage done? Would I estimate the percentage,

and
then update the progress bar (jumping maybe 10% at a time) after each
procedure is done? If this wouldn't work, maybe just keep updating a
MessageBox??
Any ideas on how would I do this?

I know I can use the status bar with text, but it's not very noticeable.

Any help is greatly appreciated,
Denny



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Different Kind of Progress Bar...

So Onedaywhen is Jamie Collins! Why Onedaywhen?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Robin Hammond" wrote in message
...
Onedaywhen's biased. He came up with the fancy coloured bar technique I

now
use!

Robin Hammond
www.enhanceddatasystems.com



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Different Kind of Progress Bar...

Thanks for outing me, Bob!

It's the opening words to a CD by Joe Henry, but may as well be short
for...

....One day when I get a bit of time I'll set up my own website with
code examples I can reference in my posts. Perhaps then Onedaywhen
will become synonymous with Excel ADO and others will link to me
rather than <adopts Dick Dastardly type voice that pesky Ole P.
Erlandsen (http://www.erlandsendata.no/english/). Doh!

Onedaywhen (a.k.a. Jamie Collins)


You remove nothere from *my* email address

--

"Bob Phillips" wrote in message ...
So Onedaywhen is Jamie Collins! Why Onedaywhen?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Robin Hammond" wrote in message
...
Onedaywhen's biased. He came up with the fancy coloured bar technique I

now
use!

Robin Hammond
www.enhanceddatasystems.com
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
Different kind of rounding Sarah_Lund Excel Discussion (Misc queries) 5 December 21st 08 05:58 PM
What kind of chart is this? katzy Charts and Charting in Excel 5 June 4th 08 09:50 PM
What kind of protection is this? joeu2004 Excel Discussion (Misc queries) 2 January 3rd 08 08:28 PM
some kind of IF or lookup??? SLP Excel Worksheet Functions 3 January 1st 08 05:59 PM
Help what kind of formula? Emil0 New Users to Excel 3 February 6th 06 09:10 PM


All times are GMT +1. The time now is 01:08 PM.

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

About Us

"It's about Microsoft Excel"