- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-7-21 07:10 ½s¿è
¦^´_ 20# ÂŤÑÄR¦À - Private Sub Workbook_Open()
- Dim rng As Variant
-
- With Sheets(1)
- For Each rng In Range(.[D2], .[D2].End(xlDown))
- rng.Offset(, 26) = IIf(IsNumeric(rng), rng, 0)
- rng.Offset(, 1) = IIf(IsNumeric(rng.Offset(, -1)), rng.Offset(, -1), 0)
- Next
- If Time < TimeValue("08:45") Then ' ¦©ó¶}½L®É¶¡
- Application.OnTime TimeValue("08:45"), "ThisWorkbook.MyWay" ' ³]©w©ó08:45 °õ¦æ MyWay µ{§Ç
- ElseIf Time >= TimeValue("08:45") And Time <= TimeValue("13:30") Then ' ©ó¥æ©ö®É¶¡¤º
- MyWay ' °õ¦æ MyWay µ{§Ç
- End If
- End With
- End Sub
- Sub MyWay()
- With Sheets(1)
- For Each rng In Range(.[D2], .[D2].End(xlDown))
- If IsNumeric(rng) Then
- If rng.Offset(, 26).Value <> rng.Value Then
- rng.Offset(, 26) = rng
- rng.Offset(, 2) = rng.Offset(, 1)
- rng.Offset(, 1) = IIf(IsNumeric(rng.Offset(, -1)), rng.Offset(, -1), 0)
- End If
- End If
- Next
- End With
-
- Application.OnTime Now + TimeValue("00:00:10"), "ThisWorkbook.MyWay" ' ³]©w 10 ¬í«á °õ¦æ MyWay µ{§Ç
- End Sub
- Sub addN() ' ¤â°Ê´ú¸Õ¥Î
- Dim rng As Range
-
- With Sheets(1)
- For Each rng In Range(.[AD2], .[AD2].End(xlDown))
- rng = rng + 1
- Next
- End With
- End Sub
½Æ»s¥N½X |
|