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

[µo°Ý] EXCEL¸ó¸ê®ÆÀÉ¿z¿ï±ø¥ó°ÝÃD½Ð±Ð

[µo°Ý] EXCEL¸ó¸ê®ÆÀÉ¿z¿ï±ø¥ó°ÝÃD½Ð±Ð

¥»©«³Ì«á¥Ñ bqwangs ©ó 2014-11-14 17:32 ½s¿è

§ÚÀɮ׸̦³2­ÓÀÉ®×

¤ôªG¥X³fªí¦³5¶µ¿ï¶µ
¶}©l¤é´Á        µ²§ô¤é´Á        ²£«~        ¥X³f¤è¦¡        ¥X³f¥N¸¹
¤W­zªº5­ÓÄæ¦ì ¥i¥Î¿ïªº ¤U©Ô¦¡ªº ©Î ¿é¤J¦¡ ©Î «ö¶s¦¡ªº¤è¦¡¥h³]©w¿z¿ï±ø¥ó¬Ò¥i

­n¦p¦ó¥h¿z¿ï¤ôªG¸ê®ÆªºEXCELÀÉ

§âµ²ªG©ó¤ôªG¥X³fªí¤¤Åã¥Ü¥X¨Ó
¬y¤ô¸¹¡@        ²£«~        ¥X³f¤è¦¡        ¤é´Á        ¬P´Á        ®É¶¡        ¥X³f¥N¸¹        ³æ»ù        ¤½¤ç¼Æ        Á`»ù        ³Æµù

¦pªG¥i¥Hªº¸Ü
¥i§_´£¨Ñ½d¨ÒÀÉ

¤ôªG¥X³fªí.rar (19.54 KB)

¥»©«³Ì«á¥Ñ bqwangs ©ó 2014-12-13 20:23 ½s¿è
  1. Sub crMain1()
  2. Dim sWB As Workbook
  3. Dim Sht As Worksheet
  4. Dim bgDate As Date, endDate As Date
  5.     'Worksheets(1).Cells.ClearContents
  6.     bgDate = Application.InputBox("®æ¦¡:yyyy/mm/dd", "¶}©l¤é´Á", Type:=2)
  7.     endDate = Application.InputBox("®æ¦¡:yyyy/mm/dd", "µ²§ô¤é´Á", Type:=2)
  8.     Set sWB = Workbooks.Open(ThisWorkbook.Path & "\¤ôªG¸ê®Æ.xlsx")
  9.     Set Sht = sWB.Worksheets(1)
  10.     With Sht
  11.         .Rows(1).AutoFilter
  12.         .UsedRange.AutoFilter Field:=3, Criteria1:="0"
  13.         .UsedRange.AutoFilter Field:=2, Criteria1:= _
  14.             ">=" & bgDate, Operator:=xlAnd, Criteria2:="<=" & endDate & " 23:59"
  15.         .UsedRange.Copy ThisWorkbook.Worksheets("¤ôªG¥X³fªí").Range("A4")
  16.     End With
  17.     sWB.Close False
  18. End Sub
½Æ»s¥N½X
¤W­±ªº»yªk
¥u¦³¶}©l¤é´Á µ²§ô¤é´Á »P ¥X³f¥N¸¹ ªº¿z¿ï
¦ý²{¦b­n¦h¼W¥[ ²£«~ »P ¥X³f¤è¦¡ªº¿z¿ï
¸Ó¦p¦ó§ï??
½Ð¤£§[«ü¾É

TOP

        ÀR«ä¦Û¦b : ¤H¨ÆªºÁ}Ãø»PµZ¿i¡A´N¬O¤@ºØ¦ÒÅç¡C
ªð¦^¦Cªí ¤W¤@¥DÃD