Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

progress bar? how?

Status
Not open for further replies.

19790203

Programmer
Oct 7, 2005
13
PL
Let's have a time consuming code:

sub code()

'the first SQL query

'the second SQL query

end sub

How to put a progress bar with status changing after each SQL query is completed?
 
Put a progress bar on a form (ProgressBar1)
Set its max value to the number of queries to be executed.
Then:
Code:
sub code()

'the first SQL query
ProgressBar1.value = ProgressBar1.value + 1

'the second SQL query
ProgressBar1.value = ProgressBar1.value + 1

end sub

-Max
 
But I meant a progress bar in VB for Excel.. I'm trying to find more relevant info in VB Excel help but with no result :/
 
I did not realize this was a VBA question. You're probably better off posting in a VBA forum.
-Max
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top