- ©«¤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 ©ó 2010-7-1 17:33 ½s¿è
¦^´_ 1# j1221
¸Õ¸Õ¬Ý- Private Sub Workbook_Open()
- If Time >= TimeValue("08:45:00") And Time <= TimeValue("13:45:00") Then
- Sheet2.[B7:G307] = ""
- change
- Else
- Application.OnTime "09:01:00", "ThisWorkbook.change"
- End If
- End Sub
- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- Private Sub change()
- Dim TimeRange As Range, Rng As Range, R As Range
- With Sheet2
- Set TimeRange = .[A:A].Find(Format(TimeSerial(Hour(Time), Minute(Time), 0), "hh:mm"), LookIn:=xlValues)
- Set Rng = TimeRange.Offset(, 1).Resize(1, 6)
- Set R = Application.Evaluate(Mid(.Range("A3").Formula, 2))
- 'R ¬OA3ªº¤½¦¡ =Data!B2 ©Ò«üªº¦ì¸m
- End With
- Rng.Value = R.Offset(, 1).Resize(, 6).Value
- If Time > TimeValue("13:45:00") Then Exit Sub
- Application.OnTime Now + TimeValue("00:01"), "ThisWorkbook.change"
- End Sub
½Æ»s¥N½X |
|