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

½Ð°Ý vba ¥i¥H¼g¦¨ ¿z¿ï«á ©çÄá·Ó¤ù¦s¦¨¹ÏÀɶÜ

½Ð°Ý vba ¥i¥H¼g¦¨ ¿z¿ï«á ©çÄá·Ó¤ù¦s¦¨¹ÏÀɶÜ

¤j¤j­Ì
¤p§Ì¦³¤@­ÓºÃ°Ý
³q±`§Ú­Ì¦b¿z¿ï¤§«á ¦pªG­n§â²{¦bªºµe­±©ç¦¨¹Ï¤ù µM«á¦Û°Ê¦sÀÉ
vba¦³³o¥\¯à??


¸Ó«ç»ò¼g©O?

·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¤j¤j½Ð°Ý ¤@¤U
§Ú¦b¶] ¿z¿ïªº®É­Ô
¦]¬°¿z¿ï¥X¨Ó¨S¦³¥ô¦ó¤@µ§©²¦X

¥L·|¸õ¥X

[[excel µLªk¤w½Ò¥Îªº¸ê·½§¹¦¨¤u§@ ½Ð¥H¸û¤pªº¸ê®Æ³fÃö³¬¨ä¥LÀ³¥Îµ{¦¡]]

½Ð°Ý ­n¦p¦ó¤£­nÅý¥LÅã¥Ü©O¡H

¥¨¶°¦p¤U^^
ps¡G§Ú¦b«ö§¹[[excel µLªk¤w½Ò¥Îªº¸ê·½§¹¦¨¤u§@ ½Ð¥H¸û¤pªº¸ê®Æ³fÃö³¬¨ä¥LÀ³¥Îµ{¦¡]] ¤§«á¥L¶×¥X²{­n¤£­n[[°»¿ù]] ³o­Ó§Ú³£·Qª½±µ¸õ¹LÄ~Äò°õ¦æ¨ì µ²§ô ...¤£ª¾¹D³o­Ó  ³B²z¤è¦¡¤]¬O¤@¼Ë¶Ü¡H

Sub ¿ïªÑ1A1()



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
   
    '²Ä¤@¦¸¿ï¸ê®Æ¡A¨Ã¶K¨ì¬ö¿ý-©P¦P¶b

    '=========
    'A1¿ïªÑ
    '=========
   
   
   Sheets("¶°¦X").Select
   
   ActiveSheet.Range("$A$1GZ$55586").AutoFilter Field:=2, Criteria1:= _
  xlFilterToday, Operator:=xlFilterDynamic
  

ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=5, Criteria1:=">=2"
ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=6, Criteria1:=">=0"
ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=7, Criteria1:=">=0"
ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=23, Criteria1:=">=1"
ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=25, Criteria1:="<>-1"
ActiveSheet.Range("$A$1GZ$100000").AutoFilter Field:=26, Criteria1:=">=3"
  
    Range("a2:gz2").Select '²Ä¤GÄæa2~gz2
    Range(Selection, Selection.End(xlDown)).Select '¿ï¾Ü¨ì³Ì«á¤@Äæ
    Selection.Copy
    Worksheets("¬ö¿ý-©P¦P¶b").Select
   Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste
   
   
    Call A1_©P¦P¶b_¼g¤J©P¼Ò²Õ
   

  
  Sheets("¬ö¿ý-©P¦P¶b").Select
   ActiveSheet.ShowAllData

TOP

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

¦^´_ 3# vavashop
¸Õ¸Õ¬Ý
  1. With Sheets("¶°¦X").Range("A1:GZ55586")
  2.         .AutoFilter Field:=2, Criteria1:=xlFilterToday, Operator:=xlFilterDynamic
  3.         .AutoFilter Field:=5, Criteria1:=">=2"
  4.         .AutoFilter Field:=6, Criteria1:=">=0"
  5.         .AutoFilter Field:=7, Criteria1:=">=0"
  6.         .AutoFilter Field:=23, Criteria1:=">=1"
  7.         .AutoFilter Field:=25, Criteria1:="<>-1"
  8.         .AutoFilter Field:=26, Criteria1:=">=3"
  9.         If .Range("a1").End(xlDown).Row = .Parent.Rows.Count Then
  10.             MsgBox "¨S¦³¸ê®Æ"
  11.             Exit Sub
  12.         Else
  13.             .Offset(1).SpecialCells(xlCellTypeConstants).Copy
  14.         End If
  15.     End With
  16.     Worksheets("¬ö¿ý-©P¦P¶b").Select
  17.     Cells(row_s1 + 1, 2).Select
  18.     ActiveSheet.Paste
  19.     Call A1_©P¦P¶b_¼g¤J©P¼Ò²Õ
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¤j¤j ¥i¥H±j­¢ ¨ì ¾î¦VgzÄæ¦ì³£­ncopy¶Ü
¦]¬°§Ú¤¤¶¡¦³ªºÄæ¦ì¬O ªÅªº

TOP

¤j¤j§Ú·Q°ÝÃö©ó¿z¿ïªº°ÝÃD
¦pªG¿z¿ï ¨S¦³ ¥ô¦ó¤@µ§²Å¦X
¨º¥i¥H§â·í¤À­¶ªº¿z¿ï¸Ñ°£
¤£­n¶K¤W
ª½±µ¸õ¨ìµ{¦¡½Xªºµ²§ô¶Ü?

TOP

        ÀR«ä¦Û¦b : ÁÀ¨¥¹³¤@¦·²±¶}ªºÂAªá¡A¥~ªí¬üÄR¡A¥Í©Rµu¼È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD