- ©«¤l
- 9
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 10
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2016-5-4
- ³Ì«áµn¿ý
- 2016-6-8
|
¦^´_ 2# luhpro
¤È¦w~~
«Ü·PÁ±zªºÀ°§U!!!
§Ú¹Á¸Õ¥Î¤F±z´£¨Ñªº¨âÓ¤èªk
°µ¤F¤@¨Ç§ó°Ê
´N¦¨¥\¤F!!!
¥H¤U¬Oµ{¦¡½X:¡G- Sub test()
-
- Dim i As Integer, j As Integer, x As Integer
-
- With Worksheets("test")
- Application.ScreenUpdating = False
- For x = 2 To 48
- For i = 0 To 1063
- For j = 0 To 142
- .Range("A1").AutoFilter Field:=2, Criteria1:="<" & 3 + i, Operator:=xlAnd, Criteria2:=">" & 0 + i
- DoEvents
- .Range("A1").AutoFilter Field:=3, Criteria1:=Cells(x, 11)
- DoEvents
- .Range("A1").AutoFilter Field:=5, Criteria1:=Cells(j + 2, 10)
- DoEvents
- .AutoFilter.Range.SpecialCells(xlCellTypeVisible).Copy Sheets(x).Cells(2, 2).Offset(7 * i, 7 * j)
- '¸ÑÄÀ-----.AutoFilter.Range.SpecialCells(xlCellTypeVisible).Copy«á±©ñªºsheets(x)¡A
- 'µo²{()¤º¤£¯à¼g¦¨x+1ºâ¦¡¡A·|¶]¥X¦Psheets(1)ªºÈ(¦¹®ÉxÀq»{¬°0,´Nºâ§Ú¥ý³]x=2¤]¤@¼Ë)¡F
- '¨Ï¥Îsheets(x)®É¡A¦pªG¦³¨Æ¥ý³]¸mx=2,´N·|¶]¥Xsheets(2)ªºÈ¡A©Ò¥H§Ú´N¥Î³oÓ¡C
- DoEvents
- Next j
- Next i
- Next x
- .Range("A1").AutoFilter
- Application.ScreenUpdating = True
- '¨Ï¥Îdoevents©Mapplication.screenupdating«á§Úµo²{¾ãÅé®Ä²v·|¤U°¡A¦ý¬O¯uªº¯à§ïµ½·í¾÷°ÝÃD
-
- End With
-
- End Sub
½Æ»s¥N½X Thank you very much^ ^ |
|