Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default inconsistent size progress bar

hi all,

i got a macro that does chart animation and a progress bar.

i set the progressbar to be visible during animation running, updating
its status and make it invisible when the animation ends.

however everytime i re-open the document, i have to at least go to the
design mode and modify the progress bar's size otherwise the progress
bar will appear with the different size that i set (most of the times
it looks square). sometimes the positioning move to the top left corner
too.

i've tried setting the size and position manually before i made the
progressbar visible, but it didn't work. have you guys ever have
simmilar problem? (i'm using excel2002, the progress bar is on version
6.0)

this is pretty anoying since i want to locked the spreadsheet to
prevent user to tamper with it.

here's the code:
Public Sub movePoints(ByVal sourceName As String, ByVal destinationName
As String, ByVal targetName As String)
'statusbar logic
With Sheets("Form")
.pgsStatus.Value = .pgsStatus.min
.pgsStatus.Left = 51.75
.pgsStatus.Top = 480
.pgsStatus.Width = 238.5
.pgsStatus.Height = 8.25

.pgsStatus.Visible = True
.lblProgress.Visible = True
End With

For i = 1 To division

'animation logic goes here

updateProgress Sheets("Form").pgsStatus, 1, division, i
Wait 1
Next i

Sheets("Form").pgsStatus.Visible = False
Sheets("Form").lblProgress.Visible = False

end sub

Private Sub updateProgress(ByRef pgs As ProgressBar, ByVal min As
Integer, ByVal max As Integer, ByVal val As Integer)
pgs.min = min
pgs.max = max
pgs.Value = val
End Sub

kind regards

freddie

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
Date inconsistent help please :) daisy Excel Worksheet Functions 3 May 28th 10 08:37 PM
VLOOKUP inconsistent ... help. Wayne Excel Discussion (Misc queries) 2 February 22nd 10 09:07 AM
inconsistent autofit annoni Excel Discussion (Misc queries) 0 March 30th 09 08:24 PM
Calculation inconsistent PMBO Excel Discussion (Misc queries) 4 December 2nd 08 04:12 PM
DDEInitiate inconsistent... Jeff Brush Excel Programming 0 January 12th 05 08:42 PM


All times are GMT +1. The time now is 08:53 AM.

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"