- ©«¤l
- 248
- ¥DÃD
- 55
- ºëµØ
- 0
- ¿n¤À
- 314
- ÂI¦W
- 212
- §@·~¨t²Î
- XP / WIN7
- ³nÅ骩¥»
- 2003 / 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Tainan
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 8# stillfish00
¤£ª¾¹D¬°¤°»ò°õ¦æ°_¨Ó·|»¡¥¨¶°¦³°ÝÃD
«¶}¤F¤]¬O¤@¼Ë
¤£²M·¡¿ù¦bþ
§Úªº°õ¦æ¤è¦¡¬O- Sub test()
- SetRangeFlashing Target:=Range("B2"), ColorIndex:=3
- End Sub
- Static Sub SetRangeFlashing(Optional Target, Optional ColorIndex, Optional bQuit As Boolean)
-
- '¨Ï¥Î¤èªk:
- ' n¶}©l°{Ã{½Ð©I¥s¡G
- 'SetRangeFlashing Target:=Range("B2"), ColorIndex:=3
- ' n°±¤î°{Ã{½Ð©I¥s¡GSetRangeFlashing bQuit:=True
- Dim dteNextTime As Date
- Dim bStatus As Boolean
- Dim RecordColor
- Dim rngFlash As Range
-
- If bQuit Then
- rngFlash.Interior.ColorIndex = RecordColor
- Application.OnTime dteNextTime, "SetRangeFlashing", , False
- Else
- If Not IsMissing(Target) Then Set rngFlash = Target
- If Not IsMissing(ColorIndex) Then RecordColor = ColorIndex
-
- rngFlash.Interior.ColorIndex = IIf(bStatus, RecordColor, xlColorIndexNone)
- bStatus = Not bStatus
- dteNextTime = Now + TimeValue("00:00:01")
- Application.OnTime dteNextTime, "SetRangeFlashing"
- End If
-
- End Sub
½Æ»s¥N½X ¤£ª¾¹D³o¼Ë¶]µ{¦¡¬O¤£¬O¥¿½Tªº
³Â·Ð¤j¤jÀ°§Ú¬Ý¬Ý
ÁÂÁÂ : ) |
|