Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Updated Modeless Progress Bar Class Available

If anyone is interested, following up on a previous post there's an updated
version of a progress bar class up on my site. The updates now allow it to
run in Excel 97 as well as later versions (by using the status bar rather
than a modeless form if needed) meaning that the developer doesn't have to
worry about anything other than 95 users. The demo also shows how to handle
a cancel during execution of a routine.

In brief, it displays the usual progress bar, a form title, up to three
captions, and an optional cancel button. Typical usage is shown below.
Hopefully it will help somebody...
Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


Public UserCancelled As Boolean

Sub ProgBarDemo()
Dim PB As clsProgBar
Dim nCounter As Integer
Dim lWaitCount As Long

Set PB = New clsProgBar
With PB
.Title = "Enhanced Datasystems Progress Bar"
.Caption2 = "This is caption 2"
.Caption3 = "This is caption 3"
.Show
For nCounter = 0 To 100
.Progress = nCounter
.Caption1 = "Progress message " & CStr(nCounter)
For lWaitCount = 0 To 1000000
If UserCancelled = True Then GoTo EndRoutine
Next lWaitCount
Next nCounter
EndRoutine:
.Finish
End With
Set PB = Nothing
End Sub



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default Updated Modeless Progress Bar Class Available

And here's the link!
http://www.enhanceddatasystems.com/E...rogressBar.htm

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Robin Hammond" wrote in message
...
If anyone is interested, following up on a previous post there's an

updated
version of a progress bar class up on my site. The updates now allow it to
run in Excel 97 as well as later versions (by using the status bar rather
than a modeless form if needed) meaning that the developer doesn't have to
worry about anything other than 95 users. The demo also shows how to

handle
a cancel during execution of a routine.

In brief, it displays the usual progress bar, a form title, up to three
captions, and an optional cancel button. Typical usage is shown below.
Hopefully it will help somebody...
Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


Public UserCancelled As Boolean

Sub ProgBarDemo()
Dim PB As clsProgBar
Dim nCounter As Integer
Dim lWaitCount As Long

Set PB = New clsProgBar
With PB
.Title = "Enhanced Datasystems Progress Bar"
.Caption2 = "This is caption 2"
.Caption3 = "This is caption 3"
.Show
For nCounter = 0 To 100
.Progress = nCounter
.Caption1 = "Progress message " & CStr(nCounter)
For lWaitCount = 0 To 1000000
If UserCancelled = True Then GoTo EndRoutine
Next lWaitCount
Next nCounter
EndRoutine:
.Finish
End With
Set PB = Nothing
End Sub





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
Excel cells randomly don't get updated unless each cell is updated Lost in Excel Excel Discussion (Misc queries) 5 September 29th 08 06:56 PM
Modeless userform hngo New Users to Excel 2 July 13th 05 09:23 AM
Disable close button of Modeless Userform RB Smissaert Excel Programming 2 September 13th 03 09:46 PM
modeless userforms Don Cossitt Excel Programming 5 August 29th 03 08:39 PM
Modeless form for user interaction Arne[_2_] Excel Programming 6 July 15th 03 02:22 PM


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