Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Far Far is offline
external usenet poster
 
Posts: 4
Default Macro works in 2000 not XP for Progress Bar

The Following macro works in Excel 2000 but not Excel XP
for showing the "progress %" of Marco Excecution.
Otherwise Macro runs but the visual form is not updated on
screen.

Note that if I dont unload" the Progress Bar it will show
100% complete as expected, but it does not show progress
while macro is executing

' Defines standard Footer & Header settings
Dim Counter As Integer
Dim Total_Worksheets As Integer
Total_Worksheets = Application.Worksheets.Count
Counter = 0
For Each wks In Worksheets
If wks.Visible = xlSheetVisible Then
wks.Rows("1:3").EntireRow.Hidden = True
End If
Counter = Counter + 1 ' Counter to display % done
in Progress Form
PctDone = Counter / (Total_Worksheets)
Call UpdateProgress(PctDone)
Next wks
Unload ProgressUpdate_Form
End Sub

' Procedure updates the "status Bar" on the
UpdateProgress form when Macro is executing to show %done
Sub UpdateProgress(pct)
With ProgressUpdate_Form
.FrameProgress.Caption = Format(pct, "0%")
.LabelProgress.Width = pct *
(.FrameProgress.Width - 10)
.Repaint
End With
End Sub

Thanks
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
Is there a template that works automatically like in Word 2000? Stephany A Excel Discussion (Misc queries) 1 August 13th 05 12:13 PM
MS Works Spreadsheet 2000 v5.0 VLOOKUP John L. Excel Worksheet Functions 1 August 7th 05 08:05 PM
Save As... MS Works 2000 spreadsheet Thomas Excel Discussion (Misc queries) 2 May 7th 05 06:56 PM
Macro works fine in xl2002 but does not in xl 2000 Nolin[_2_] Excel Programming 1 February 25th 04 05:58 PM
VBA Code works in 2000 not 97 Michael Beckinsale Excel Programming 1 January 20th 04 05:38 PM


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