vba ¦Û°Ê®É¶¡update§ì¨úµ{¦¡
- ©«¤l
- 102
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 137
- ÂI¦W
- 0
- §@·~¨t²Î
- winxp
- ³nÅ骩¥»
- 12
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-11-24
- ³Ì«áµn¿ý
- 2018-12-6
|
§A¦n
°õ¦æ§¹«á¥X²{
{§ä¤£¨ì ¥¨¶° Sheet1.Ex}
¥t¥~½Ð°Ý¬O§_¥i«ö·ÓBÄ涶§Ç¤U¨Ó©O
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-11-28 16:52 ½s¿è
¦^´_ 1# tonycho33
¤u§@ªí Sheet1ªºµ{¦¡½X- Option Explicit
- Sub Ex()
- Dim E As Range, AR(), i As Integer, N As Variant
- ReDim AR(1, 0)
- For Each E In [C6:C14]
- If [H6] + (1 / 24 * E) > Now Then
- AR(0, UBound(AR, 2)) = E.Offset(, -1)
- AR(1, UBound(AR, 2)) = CDbl([H6] + 1 / 24 * E)
- ReDim Preserve AR(1, UBound(AR, 2) + 1)
- End If
- Next
- [G7].Resize(3, 2) = ""
- If UBound(AR, 2) = 0 Then
- Exit Sub
- Else
- ReDim Preserve AR(1, UBound(AR, 2) - 1)
- End If
- For i = IIf(UBound(AR, 2) >= 1, IIf(UBound(AR, 2) = 1, 1, 2), 0) To 0 Step -1
- N = Application.Small(Application.Index(AR, 2), i + 1)
- N = Application.Match(N, Application.Index(AR, 2), 0) - 1
- [G7].Cells(i + 1, 1) = AR(0, N)
- [G7].Cells(i + 1, 2) = AR(1, N)
- Next
- Application.OnTime Time + #12:01:00 AM#, "SHEET1.Ex" '1¤ÀÄÁ°õ¦æ¤@¦¸
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|