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

ActiveSheet.Range ¥i¥H³]©w ¦h­Ó¥ý«á±o¿zÅã±Æ§Ç¶Ü?

ActiveSheet.Range ¥i¥H³]©w ¦h­Ó¥ý«á±o¿zÅã±Æ§Ç¶Ü?

¤j¤j½Ð±Ð¤@­Ó°ÝÃD

±Æ§Ç¿z¿ï¥i¥H³]©w ¥ý«á¶¶§Ç¶Ü?

ActiveSheet.Range("$A$1:$GZ$5000").AutoFilter Field:=7, Criteria1:="3"
    ActiveSheet.Range("$A$1:$GZ$5000").AutoFilter Field:=6, Criteria1:="3"

¦^´_ 11# vavashop
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub ¥¨¶°9()
  3.     Dim row_s1 As Integer
  4.     'Àˬd¤u§@ªí1ªºBÄæ¤w¦³¸ê®Æ¦æ¼Æ
  5.     With Worksheets("¬ö¿ý-©P¦P¶b¶^")
  6.         row_s1 = .Range("B65535").End(xlUp).Row
  7.         'B1µL¸ê®Æ®É¡Arow_s1 =0
  8.         If row_s1 = 1 Then
  9.             If .Cells(row_s1, 2) = "" Then
  10.                 row_s1 = 0
  11.             End If
  12.         End If
  13.     End With
  14.     With Sheets("¶°¦X")
  15.     ' ActiveSheet.Range("$A$1GZ$55586").AutoFilter Field:=2, Criteria1:= _
  16.     ' xlFilterToday, Operator:=xlFilterDynamic
  17.         With .Range("A1:GZ100000")
  18.             .AutoFilter Field:=18, Criteria1:="<=0"
  19.             .AutoFilter Field:=20, Criteria1:=">=1000"
  20.             .AutoFilter Field:=25, Criteria1:="<=0"
  21.             .AutoFilter Field:=26, Criteria1:="<=-2"
  22.             .AutoFilter Field:=15, Criteria1:="<=0"
  23.             .AutoFilter Field:=7, Criteria1:="<=0"
  24.             .AutoFilter Field:=6, Criteria1:="<=0"
  25.             .AutoFilter Field:=29, Criteria1:=">=50"
  26.             .AutoFilter Field:=30, Criteria1:=">=50"
  27.         End With
  28.          'Range("a2:gz2").Select '²Ä¤GÄæa2~gz2
  29.         .Range(.Range("a2:gz2"), .Range("a2:gz2").End(xlDown)).Copy Worksheets("¬ö¿ý-adxr¶^").Cells(row_s1 + 1, 2)
  30.         '¿ï¾Ü¨ì³Ì«á¤@Äæ
  31.         '.Selection.Copy
  32.         'Worksheets("¬ö¿ý-adxr¶^").Select
  33.         'Worksheets("¬ö¿ý-adxr¶^").Cells(row_s1 + 1, 1).Select
  34.         'ActiveSheet.Paste
  35.         .Select
  36.         .ShowAllData
  37.     End With
  38. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-5-8 08:59 ½s¿è

¤j¤j §Ú¹J¨ì¤@­Ó°ÝÃD

¦pªG»¡¿z¿ï¥X¨Óªº¸ê®Æ ¨S¥b¤ñ¸ê®Æ ¥¨¶°·|¥X²{¿ù»~
°±¯d¦b   ActiveSheet.Paste ¸ò§A»¡¿ù»~ ¨º¸Ó«ç»ò­×§ï©O
ÁÂÁÂ

Sub ¥¨¶°9()
'
' ¥¨¶°9 ¥¨¶°
'



Dim row_s1 As Integer

'Àˬd¤u§@ªí1ªºBÄæ¤w¦³¸ê®Æ¦æ¼Æ
   row_s1 = Worksheets("¬ö¿ý-©P¦P¶b¶^").Range("B65535").End(xlUp).Row

'B1µL¸ê®Æ®É¡Arow_s1 =0
    If row_s1 = 1 Then
        If Cells(row_s1, 2) = "" Then
            row_s1 = 0
        End If
    End If
      
Sheets("¶°¦X").Select
   
' ActiveSheet.Range("$A$1:GZ$55586").AutoFilter Field:=2, Criteria1:= _
' xlFilterToday, Operator:=xlFilterDynamic

ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=18, Criteria1:="<=0"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=20, Criteria1:=">=1000"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=25, Criteria1:="<=0"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=26, Criteria1:="<=-2"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=15, Criteria1:="<=0"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=7, Criteria1:="<=0"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=6, Criteria1:="<=0"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=29, Criteria1:=">=50"
ActiveSheet.Range("$A$1:GZ$100000").AutoFilter Field:=30, Criteria1:=">=50"


    Range("a2:gz2").Select '²Ä¤GÄæa2~gz2
    Range(Selection, Selection.End(xlDown)).Select '¿ï¾Ü¨ì³Ì«á¤@Äæ
    Selection.Copy
    Worksheets("¬ö¿ý-adxr¶^").Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste
     
   Sheets("¶°¦X").Select
ActiveSheet.ShowAllData
   
End Sub

TOP

¦^´_ 6# vavashop


   
§Ú¬O¤£¬O¦]¬°¤U­±³o¤@¬q©Ò¥HÅܦ¨¶V¨Ó¶V¤j
Range("a2:gz100000").Select
    Selection.Copy

¸Õ¸Õ¬Ý ¥uCopy¦³¸ê®ÆªºÀx¦s®æ
  1. Sheets("«ü©wªº¤u§@ªí").UsedRange.Columns("a:gz").Offset(1).Copy
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¤j¤j
½Ð°Ý³o¤@¬q ¦p¦ó§ï
Sub ¥¨¶°2()
'
' ¥¨¶°2 ¥¨¶°
'

'
  Dim row_s1 As Integer

'Àˬd¤u§@ªí1ªºBÄæ¤w¦³¸ê®Æ¦æ¼Æ
    row_s1 = Worksheets(1).Range("B65535").End(xlUp).Row

'B1µL¸ê®Æ®É¡Arow_s1 =0
    If row_s1 = 1 Then
        If Cells(row_s1, 2) = "" Then
            row_s1 = 0
        End If
    End If
   
   
  
  

   Call a2

Call a1
        
    Range("B2:l9").Select
    Selection.Copy
    Worksheets(1).Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste


§Ú·Q§ï¦¨ §ì¥X¿z¿ï«áªº¸ê®Æ
Range("B2:l9").Select

i9  ¸ê®Æ³Ì«á¤£¤@©w¬O¦b³o¤@¦C
¤£ª¾¹D¤j¤j¥i¥H«üÂI¤@¤U¶Ü¡H

TOP

¦^´_ 6# vavashop


    ÀÉ®×Åܤj¡A°Ñ¦Ò kill row
http://forum.twbts.com/viewthrea ... &from=favorites

TOP

¥t¥~ ¤j¤j­Ì¡ã§ÚbÄæ¦ì³£¦³¸ê®Æ
©Ò¥H¥i¥H¥Î³o¤@Äæ ¨Ó¿z¿ïªÅ¥Õ®æ

TOP

¶â¶â¡ã
¤j¤j§Ú¦³¤@­ÓºÃ°Ý¡ã
§Úªºvba¶]§¹Åܦ¨200¦hmb

§Ú·Q§ì¿z¿ï¥X¨Óªº¸ê®ÆµM«á¶K¤W ¨ä¥L¤u§@ªí
¤£ª¾¹D

§Ú¬O¤£¬O¦]¬°¤U­±³o¤@¬q©Ò¥HÅܦ¨¶V¨Ó¶V¤j

Range("a2:gz100000").Select
    Selection.Copy

¦]¬°¸ê®Æ¨S¦³¨º»ò¦h §Ú¥u»Ý­na2~gzÄæ¦ì
µM«á¿ï¾Ü¿z¿ï¥X¨Óªº¸ê®Æ½Æ»s°_¨Ó ¶K¦V¥t¤@­Ó¤u§@ªí

²Ä¤G­Ó°ÝÃD¬O²{¦b§Ú«Ü¦h¤u§@ªí "¦C"³£¬OªÅ¥Õªº¦ý¸¹½X³£¨ì¤Q¸U¤F
¤£ª¾¹D½Ö¥i¥H±Ï§Ú
Äæ¦ì¤]¥i¥H¨¹§Ú§R°£¨ìa~gz¯d¤U¨Ó§Y¥i¶Ü¡H

½Ð¦U¦ì¤j¤jÀ°¦£¤F

·Pı·|Ãz¬µªºexcel

TOP

¦^´_ 4# vavashop
¬O³o¼Ë¶Ü?
  1. Sub Ex()
  2.     With ActiveSheet.Range("$A$1:$GZ$5000")
  3.         .AutoFilter Field:=7, Criteria1:="3"
  4.         .AutoFilter Field:=6, Criteria1:="3"
  5.         '±Æ§Ç¿z¿ï¥i¥H³]©w ¥ý«á¶¶§Ç¶Ü?
  6.         '¬O³o¼Ë¶Ü!!
  7.         .Columns(1).Sort KEY1:=.Cells(1), Order1:=xlAscending, Header:=xlYes
  8.         .Columns(2).Sort KEY1:=.Cells(2), Order1:=xlAscending, Header:=xlYes
  9.         .Columns(3).Sort KEY1:=.Cells(3), Order1:=xlAscending, Header:=xlYes
  10.     End With
  11. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¤W­±³o¤èªk ¤£·| ¦³ ¶¶§Çªº¿z¿ï

TOP

        ÀR«ä¦Û¦b : ¨ü¤HÂI¤ô¤§®¦¡A¶··í´é¬u¥H³ø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD