- ©«¤l
- 47
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 82
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-7-4
- ³Ì«áµn¿ý
- 2021-9-4
|
[µo°Ý] ¦Û»s¶i«×±ø(¤£¥ÎProgressBar)
¤j®a¦n
¥Ñ©óVBA ì¥ÍProgressBar ¥²¶·¦b¨Ï¥ÎªÌ¦³¦w¸Ë¬ÛÃö®M¥óªº±¡ªp¤U¤~¯à§e²{¡A©Ò¥H§Ú·Qn¤£¥Îì¥ÍProgressBarªº¤è¦¡¡A¦Û»s¶i«×±ø
§e²{¤è¦¡¤j·§¦p¤U¡G
¥ý¦Û»s¤@Óªí³æ¡A¨Ã¦bªí³æ¤¤¥[¤J®Ø¬[¡]FRAME¡^¡AµM«á¦b®Ø¬[¤¤¥[¤J¼ÐÅÒ¡]LABEL¡^¡A¤§«áªí³æÅã¥Ü®É¡A§ïÅܼÐÅÒªº¼e«×¡A¥H§e²{¥X¶]¶i«×ªº®ÄªG
µ{¦¡½X¬°¡G- Private Sub UserForm_Activate()
- Dim A As Integer
- Dim Q As LongLong
- Dim TIME As String
- TIME = Timer
- Q = 100000000
- For A = 0 To 300 Step 30
- Label2.Width = A
- wait (0.5)
- DoEvents
- Do While Q > 0
- Q = Q - 1
- Loop
- If Q < 0 Then Unload UserForm1
- Next
- MsgBox "DONE" & Timer - TIME & "Q=" & Q
- End Sub
- Function wait(S As Single)
- Dim PauseTime, Start
- PauseTime = S
- Start = Timer
- Do While Timer < Start + PauseTime
- DoEvents
- Loop
- End Function
½Æ»s¥N½X §Ú¹w´Áªº®ÄªG¬O¡A¹q¸£¦b³B²zQ»¼´î1ªºµ{§Ç¤¤¡A¦P¨B§ïÅÜLABLEªº¼e«×
¦ý¤W±ªºµ{¦¡¶]¥X¨Óªºµ²ªG¦ü¥G¬O¡A¦b¶]§¹Q»¼´î1ªºµ{§Ç«á¡A¤~¶]§ïÅÜLABELªº¼e«×µ{¦¡
·Q½Ð°Ý¤j®a¡A¤W±µ{¦¡n«ç»ò§ï¤~·|¬O¡A¦P®É¶]Q»¼´î1µ{§Ç¤Î§ïÅÜLABELªº¼e«×ªºµ{§Ç
ÁÂÁ¡ã |
|