Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Yet another progress bar Question

With everyones help, I have been able to get my spread sheet working like my
boss wants. However now when I need to refresh my pivottables (OLAP) i bring
up a from to enter the date to calculate. All works fine. What is requires
now, is a progreass bar at the bottom for the form. I have tried the examples
here, and to a point they work. What i am not getting is how to make the
progress bar work at the same time as the refreshes are running and end when
the refresh ends.

Here is an example of the code:

Private Sub UserForm_Activate()
Dim Dbox As String
On Error GoTo ErrHan
LB2.Caption = "Data is for Date : " & "3/12/2006"
Application.Cursor = xlWait
CB1.Enabled = False
CB2.Enabled = False
CB3.Enabled = False

Sheets("Days").PivotTables("DAYSA").PivotCache.Ref resh
Sheets("Days").PivotTables("PivotTable3").PivotCac he.Refresh
Sheets("Swings").PivotTables("Swings").PivotCache. Refresh
Sheets("Swings").PivotTables("Swings2").PivotCache .Refresh
Sheets("Mids").PivotTables("Mids").PivotCache.Refr esh
Sheets("Mids").PivotTables("Mids2").PivotCache.Ref resh
Sheets("Mids").PivotTables("Mids3").PivotCache.Ref resh
Sheets("Mids").PivotTables("Mids4").PivotCache.Ref resh

CB1.Enabled = True
CB2.Enabled = True
CB3.Enabled = True
Application.Cursor = xlDefault
Exit Sub

Every time I put my prbar in it either finishes right away or it hangs at a
percentage the stops when the refresh stops.

Any suggestions would be of great help.
Once again thanks for helping me look like an "Excel God" to my boss.
ei
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Yet another progress bar Question

Maybe this will help:
http://www.xcelfiles.com/ProgressBar.html

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
Progress Bar Jase Excel Discussion (Misc queries) 0 June 2nd 08 07:45 PM
Progress Bar grahammal[_4_] Excel Programming 6 November 5th 05 10:51 AM
Progress Bar John Excel Programming 21 July 8th 05 05:45 PM
progress bar second question [email protected] Excel Programming 1 January 19th 05 02:16 PM
Progress Bar Syed Zeeshan Haider[_7_] Excel Programming 2 May 21st 04 01:33 PM


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