- ©«¤l
- 38
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 58
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-5-22
- ³Ì«áµn¿ý
- 2020-3-9
|
¥»©«³Ì«á¥Ñ bqwangs ©ó 2014-12-13 20:23 ½s¿è
- Sub crMain1()
- Dim sWB As Workbook
- Dim Sht As Worksheet
- Dim bgDate As Date, endDate As Date
- 'Worksheets(1).Cells.ClearContents
- bgDate = Application.InputBox("®æ¦¡:yyyy/mm/dd", "¶}©l¤é´Á", Type:=2)
- endDate = Application.InputBox("®æ¦¡:yyyy/mm/dd", "µ²§ô¤é´Á", Type:=2)
- Set sWB = Workbooks.Open(ThisWorkbook.Path & "\¤ôªG¸ê®Æ.xlsx")
- Set Sht = sWB.Worksheets(1)
- With Sht
- .Rows(1).AutoFilter
- .UsedRange.AutoFilter Field:=3, Criteria1:="0"
- .UsedRange.AutoFilter Field:=2, Criteria1:= _
- ">=" & bgDate, Operator:=xlAnd, Criteria2:="<=" & endDate & " 23:59"
- .UsedRange.Copy ThisWorkbook.Worksheets("¤ôªG¥X³fªí").Range("A4")
- End With
- sWB.Close False
- End Sub
½Æ»s¥N½X ¤W±ªº»yªk
¥u¦³¶}©l¤é´Á µ²§ô¤é´Á »P ¥X³f¥N¸¹ ªº¿z¿ï
¦ý²{¦bn¦h¼W¥[ ²£«~ »P ¥X³f¤è¦¡ªº¿z¿ï
¸Ó¦p¦ó§ï??
½Ð¤£§[«ü¾É |
|