ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

DDE°O¿ý¦p¦ó½Æ»s¦b¤£¦P¤u§@ªí

¤£¦n·N«ä¥i¥H½Ð°Ý¦pªG¼Æ¾Ú¤@ª½©¹¤U°O¿ý ¥i¥H¤£¥Î©Ô±²¶b¬Ý³Ì¤U¤è¼Æ¾Ú  
¯àÅý¼Æ¾Ú©¹¤U°O¿ý±²¶b¸òµÛ©¹¤U²¾°Ê  ´N¥i¥H¬Ý¨ì³Ì·s°O¿ý¦Ó¤£¥Î©Ô±²¶b¶Ü?

TOP

¥»©«³Ì«á¥Ñ jerrystock ©ó 2012-2-18 01:04 ½s¿è

¦^´_ 2# GBKEE
«D±`·PÁÂGBKEE¤j¤jªº«ü¾É  ¥i¥H°O¿ý¤F  ·P®¦^^

TOP

¦^´_ 1# jerrystock
À°§A¦h¥[¤G¥y    §A¬O­n¦p¦¹¶Ü?
  1. Private Sub Workbook_Open()
  2. If Time >= TimeValue("08:45:00") And Time <= TimeValue("13:45:00") Then
  3. Sheet2.[B7:G307] = ""
  4. change
  5. Else
  6. Application.OnTime "09:01:00", "ThisWorkbook.change"
  7. End If
  8. End Sub
  9. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  10. Private Sub change()
  11.     Dim TimeRange As Range, Rng As Range, R As Range
  12.     With Sheet2
  13.         Set TimeRange = .[A:A].Find(Format(TimeSerial(Hour(Time), Minute(Time), 0), "hh:mm"), LookIn:=xlValues)
  14.         Set Rng = TimeRange.Offset(, 1).Resize(1, 6)
  15.         Set R = Application.Evaluate(Mid(.Range("A3").Formula, 2))
  16.         'R ¬OA3ªº¤½¦¡ =Data!B2 ©Ò«üªº¦ì¸m
  17.        Rng.Value = R.Offset(, 1).Resize(, 6).Value                         ' ***³o¸Ì¤]­n: Rªº¼Æ¾Ú «ü©w¨ì Rng
  18.   With Sheet5 '¹q¤l´Á§Ú¥[¤Jªº³¡¤À
  19.         Set TimeRange = .[A:A].Find(Format(TimeSerial(Hour(Time), Minute(Time), 0), "hh:mm"), LookIn:=xlValues)
  20.         Set Rng = TimeRange.Offset(, 1).Resize(1, 6)
  21.         Set R = Application.Evaluate(Mid(.Range("A3").Formula, 3))
  22.         'R ¬OA3ªº¤½¦¡ =Data!B2 ©Ò«üªº¦ì¸m
  23.          Rng.Value = R.Offset(, 1).Resize(, 6).Value                         ' ****Sheet6ªº ³o¸Ì¤]­n: Rªº¼Æ¾Ú «ü©w¨ì Rng
  24.          With Sheet6 'ª÷¿Ä´Á§Ú¥[¤Jªº³¡¤À
  25.         Set TimeRange = .[A:A].Find(Format(TimeSerial(Hour(Time), Minute(Time), 0), "hh:mm"), LookIn:=xlValues)
  26.         Set Rng = TimeRange.Offset(, 1).Resize(1, 6)
  27.         Set R = Application.Evaluate(Mid(.Range("A3").Formula, 4))
  28.         'R ¬OA3ªº¤½¦¡ =Data!B2 ©Ò«üªº¦ì¸m
  29.          Rng.Value = R.Offset(, 1).Resize(, 6).Value                        'Rªº¼Æ¾Ú «ü©w¨ì Sheet6ªº Rng
  30.     End With
  31.     End With
  32.     End With
  33.        If Time > TimeValue("13:45:00") Then Exit Sub
  34.     Application.OnTime Now + TimeValue("00:01"), "ThisWorkbook.change"
  35. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD