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

²M°Ý ¤u§@ªí ­n«ü©w¶K¨ì¯S©w¤À­¶ ¤U­±µ{¦¡­n«ç»ò­×§ï

²M°Ý ¤u§@ªí ­n«ü©w¶K¨ì¯S©w¤À­¶ ¤U­±µ{¦¡­n«ç»ò­×§ï

¦U¦ì¤j¤j
Sub test()
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


'²Ä¤@¦¸¿ï¸ê®Æ0¡A¨Ã¶K¨ì¤u§@ªí1
    Worksheets(2).Select
    ActiveSheet.Range("$A$1:$D$10").AutoFilter Field:=2, Criteria1:="0"
    Range("a2:d9").Select
    Selection.Copy
    Worksheets(1).Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste
   
'²Ä¤G¦¸¿ï¸ê®Æ1¡A¨Ã¶K¨ì¤u§@ªí1
    row_s1 = Worksheets(1).Range("B65535").End(xlUp).Row

    Worksheets(2).Select
    ActiveSheet.Range("$A$1:$D$10").AutoFilter Field:=2, Criteria1:="1"
    Range("a2:d9").Select
    Selection.Copy
    Worksheets(1).Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste


¦pªG§Úªº¬O¤u§@­¶. ­n¶K¤Wªº¤u§@ªí¦WºÙ¬° ¤ÀªR¸ê®Æ­¶
½Ð°Ý³o­n«ç»ò­×§ï©O
·PÁ¤j¤j

Sub test()
Dim row_s1 As Integer

'Àˬd¤u§@ªí1ªºBÄæ¤w¦³¸ê®Æ¦æ¼Æ
    row_s1 = Worksheets("¤ÀªR¸ê®Æ").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


'²Ä¤@¦¸¿ï¸ê®Æ0¡A¨Ã¶K¨ì¤u§@ªí1
    Worksheets("¤u§@ªí2").Select
    ActiveSheet.Range("$A$1D$10").AutoFilter Field:=2, Criteria1:="0"
    Range("a2:d9").Select
    Selection.Copy
    Worksheets("¤ÀªR¸ê®Æ").Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste
   
'²Ä¤G¦¸¿ï¸ê®Æ1¡A¨Ã¶K¨ì¤u§@ªí1
    row_s1 = Worksheets("¤ÀªR¸ê®Æ").Range("B65535").End(xlUp).Row

    Worksheets("¤u§@ªí2").Select
    ActiveSheet.Range("$A$1D$10").AutoFilter Field:=2, Criteria1:="1"
    Range("a2:d9").Select
    Selection.Copy
   Worksheets("¤ÀªR¸ê®Æ").Select
    Cells(row_s1 + 1, 2).Select
    ActiveSheet.Paste

End Sub



¥Î¦n¤F ÁÂÁÂ

TOP

±z¦n! ¥H¤U´£¨Ñ¤u§@ï¿ï¾Ü®Éªº¼gªk

TOP

        ÀR«ä¦Û¦b : ¥ÌÄ@°µ¡BÅw³ß¨ü¡C
ªð¦^¦Cªí ¤W¤@¥DÃD