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

¦p¦ó±N¥x«ü´Áªº¨C¤@¤ÀÄÁ¸ê®Æ³£¬ö¿ý¦bsheet 1¸Ì..½Ð±Ðª©¤W°ª¤â«e½ú~~

¦^´_ 30# cfuxiong
  1. .Cells(Pos, 2).Resize(, 8) = .[b2:i2].Value
  2.             ' ****** Sheets("µ¦²¤°O¿ý").[b2:i2] ¤À§O¬O¥H¤UªºDEE   ******
  3.            '****[¦hªÅ¤O¹D][¤Ï¦V¶Õ¤O][¥D¤O±±½L][¥x«ü´Á ¦¨¥æ»ù][¥x«ü´Á ¦¨¥æ»ù][¼¯¥x«ü][Áú°êºî¦X][¤é¸g«ü¼Æ]****
½Æ»s¥N½X

24#µ{¦¡½X : ¤u§@ªí Sheets("µ¦²¤°O¿ý").[B2:I2] ³o8­ÓÀx¦s®æ ,­n§ï¦¨¨º¨ÇDEEªº¤½¦¡
                      µ{¦¡¨C¹j?¬í,­n§ì¨ú.[b2:i2].Value ³o¨Ç¸ê®Æ¨ì  .Cells(Pos, 2).Resize(, 8) ³o¸Ì
§¹¦¨¤W­±¨BÆJ,VBA µøµ¡¸Ì:ThisWorkbook¼Ò²Õ §R±¼©Ò¦³µ{¦¡½X ,¶K¤W 24# ©Ò¦³µ{¦¡½X?
©ú¤Ñ¬Ý¬O§_¦¨¥\!!!!

TOP

¦^´_ 31# GBKEE
GBKEE¤j§A¦n¡F
§Ë¤F¥b¤Ñ..¼W¥[¦n¦h­Ó¡H¡H¡H¬Ý¨Ó§Ú¬OÁ|Âù¤â§ë­°¤F..¥H¤U¬O§ïªº..¤£ª¾¬O§_¥¿½T¡H
½Ð°ª¤â«ü¾É~~ÁÂÁÂ~~

'If (HHMM < 845 Or HHMM > 1345) Then Exit Sub 'Àç·~®É¶¡¤~°õ¦æ
    If Time < #9:00:00 AM# Or Time > #1:30:00 PM# Then Exit Sub  'Àç·~®É¶¡¤~°õ¦æ
¡°¤W­±¤G¦æ[Àç·~®É¶¡¤~°õ¦æ]®É¶¡¥¼¦ó¤£¤@­P¡H
    If Second(Time) Mod 30 = 0 Then '¶¡¹j30¬í
    'If Second(Time) Mod 5 = 0 Then '¶¡¹j5¬í 10¬í 15¬í ....
¡°¤W­±¤G¦æ¦p§Ú»Ý­n1¤À¡A¬O§_¤G¦æ³£­n§ï Mod 60 = 0 Then¡A¶¡¹j60¬í
This Workbook¤w§ï¦¨¡F
'Sheets("µ¦²¤°O¿ý").[b10:g10] ¤À§O¬O¥H¤UªºDEE
            '[¦hªÅ¤O¹D][¤Ï¦V¶Õ¤O][¥D¤O±±½L][¼¯¥x«ü][Áú°êºî¦X][¤é¸g«ü¼Æ]

§Y®É¶qºAa.zip (20.58 KB)

50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 32# cfuxiong
   
If Time < #9:00:00 AM# Or Time > #1:30:00 PM# Then Exit Sub  'Àç·~®É¶¡¤~°õ¦æ

§ï¬°     If Time < #9:00:00 AM# Or Time > #11:30:00 PM# Then Exit Sub  'Àç·~®É¶¡¤~°õ¦æ

´ú¸Õ´Nª¾¹D

TOP

¦^´_ 33# f3202
§ï¬°     If Time < #9:00:00 AM# Or Time > #11:30:00 PM# Then Exit Sub
¬°¦ó¬O[#11:30:00 PM#]¡H
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 34# cfuxiong

=23:00:00
¥¿±`13:45:00§Y°±¤î°õ¦ævba

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-15 07:19 ½s¿è

¦^´_ 32# cfuxiong
This Workbook¤w§ï¦¨¡F'Sheets("µ¦²¤°O¿ý").[b10:g10] ¤À§O¬O¥H¤UªºDEE
¦p¹Ï ¤u§@ªí¤]­n§ï:¿é¤J¤½¦¡(¹Ï¤¤¬O¥Ü½dªº¤½¦¡,¬Ý¨º¨ÇDEE¦b­þ¸Ì)




ªþÀɪºµ{¦¡½X§A¦³­×§ï:§A¶·¦A­×§ï
  1. With Sheets("µ¦²¤°O¿ý")
  2.             .Cells(4, 2) = .Cells(4, 2) + 1 '±NÅܰʦ渹¥[¤@¦æ
  3.             Pos = .Cells(4, 2)
  4.             .Cells(Pos, 1) = Time
  5.          '   .Cells(Pos, 2).Resize(, 8) = .[b10:g10].Value  'b10:g10 ¥u¦³6Äæ  ¥B¦ì§}¤]¤£¹ï
  6.             .Cells(Pos, 2).Resize(, 6) = .[b2:g2].Value   '­n­×§ï¬° 6
  7.             'Sheets("µ¦²¤°O¿ý").[b2:i2] ¤À§O¬O¥H¤UªºDEE
  8.             '[¦hªÅ¤O¹D][¤Ï¦V¶Õ¤O][¥D¤O±±½L][¼¯¥x«ü][Áú°êºî¦X][¤é¸g«ü¼Æ]  '¥u¦³6Äæ
  9.         End With
½Æ»s¥N½X
Mod 60 = 0 Then¡A¶¡¹j60¬í    ¸Õ¸Õ´Nª¾

TOP

¦^´_ 36# GBKEE
GBKEE¤j§A¦n¡F½Ð±Ð2­Ó°ÝÃD...
Cells(4, 2) = 9 ' ¬ö¿ý±q10¦C¶}©l  [¹ï¶Ü¡H]

If Second(Time) Mod 60 = 0 Then '¶¡¹j60¬í
'If Second(Time) Mod 5 = 0 Then '¶¡¹j5¬í 10¬í 15¬í ....
[¬O§ï¤@¦æÁÙ¬O¤G¦æ³£­n§ï¡H]

ªþ¥ó¡F½Ð«ü¾É¬O§_OK...ÁÂÁÂ!!

§Y®É¶qºAa.zip (24.16 KB)

50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-15 07:21 ½s¿è

¦^´_ 37# cfuxiong
µ{¦¡½X¤¤ ¨C¦æµ{¦¡½X «e­±ªº ' ¬O§@¬°µ{¦¡½Xªºµù¸Ñ(¸ÑÄÀ¥Î) µ{¦¡¤£·|°õ¦æªº
  1. If Time < #9:00:00 AM# Or Time > #1:30:00 PM# Then Exit Sub  'Àç·~®É¶¡¤~°õ¦æ
  2.     If Second(Time) Mod 60 = 0 Then '¶¡¹j60¬í         
  3.     'If Second(Time) Mod 5 = 0 Then '¶¡¹j5¬í 10¬í 15¬í ....  ³o¦æ¬Oµù¸Ñ¸ÑÄÀ Á|¦C 5 ¬°¨C5¬í  Ãþ±À....     
  4.         With Sheets("µ¦²¤°O¿ý")
  5.             .Cells(4, 2) = .Cells(4, 2) + 1 '±NÅܰʦ渹¥[¤@¦æ
  6.             Pos = .Cells(4, 2)
  7.             .Cells(Pos, 1) = Time
  8.           '  .Cells(Pos, 2).Resize(, 8) = .[b10:g10].Value   '** ¦p°õ¦æ¦¹¦æ ·|¦³2­Ó "#NA"
  9.              '  ***** Resize(, 8)³o¸Ì¬O8Äæ  ,[b10:g10]  ³o¸Ì b:g  ¥u¦³6Äæ
  10.             .Cells(Pos, 2).Resize(, 6) = .[b2:g2].Value   ' °õ¦æ¦¹¦æ´N¥i¥H  ** ­n­×§ï¬° 6¤Î¦ì§} **
  11.             'Sheets("µ¦²¤°O¿ý").[b2:i2] ¤À§O¬O¥H¤UªºDEE
  12.             '[¦hªÅ¤O¹D][¤Ï¦V¶Õ¤O][¥D¤O±±½L][¼¯¥x«ü][Áú°êºî¦X][¤é¸g«ü¼Æ]  '¥u¦³6Äæ
  13.         End With
  14.     End If
½Æ»s¥N½X

TOP

¦^´_ 38# GBKEE
GBKEE¤j§A¦n¡F¯à§_·Ð½Ð¬d®Ö[¥¨¶°]¬O§_½s¿è¥¿½T¡A(8:45~13:45)¸ê®Æ¬O¦³¼´¶i¨Ó¦ý«o¤£¯à°O¿ý~~
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 38# GBKEE
¹ï¤£°_~~~§Ñ¤Fªþ¥ó~~

§Y®É¶qºAa.zip (24.16 KB)

50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD