LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Progress Bar


I am trying to incoporate a progress indicator in my spreadsheet and ca
not get it work. I would appreciate any help to get this working. I hav
the following code in module 1:


Sub test()
Dim fDetail As String
Dim fAnswer As Integer
Dim i As Integer
Dim rCount As Integer

Range("B2").Select
Range(Selection, Selection.End(xlDown)).Select
rCount = Selection.Rows.Count

i = 0
t = 2

UserForm1.Show vbModeless

For x = 1 To rCount

fDetail = "=IF(I" & t & "="""",0,(O" & t & "/(SUM(IF(Block=C" & t
",IF(ElementRef=F" & t
",IF(Condition<"""",roomsize,0),0),0))))*MATC H(I" & t
",{""a"",""b"",""c"",""d""}))"

Sheets("sheet1").Range("p2").Offset(i, 0).Select
Selection.FormulaArray = fDetail
Selection.Copy
Selection.PasteSpecial Paste:=xlValues
UserForm1.pcProgress i / rCount

i = i + 1
t = t + 1

Next x
Unload UserForm1

End Sub


and in Userform1's module I have this code:


Public Sub pcProgress(iPerCent As Integer)

lbIndicate.Width = iPerCent * lbFixed.Width
DoEvents
End Su

--
dcronj
-----------------------------------------------------------------------
dcronje's Profile: http://www.excelforum.com/member.php...nfo&userid=528
View this thread: http://www.excelforum.com/showthread.php?threadid=26511

 
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 [email protected] Excel Discussion (Misc queries) 1 January 6th 07 01:49 PM
Progress bar in VBE Scott P Excel Programming 5 June 14th 04 06:27 PM
Progress Bar Donny Excel Programming 0 June 12th 04 05:56 PM
Progress Bar Help Malcolm Excel Programming 2 November 25th 03 01:57 PM
Progress Bar Help Malcolm Excel Programming 2 November 21st 03 02:29 PM


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