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

[µo°Ý] ½Ð±Ð«e½ú..¦p¦ó¥Î®É¶¡½d³ò¬d¸ß,±N¬d¸ßªº²M³æÅã¥Ü¥t¤@­Ó¤u§@ªí

Sub robert2()
¤u§@ªí2.[A2:F65536].ClearContents
x = ¤u§@ªí1.[A65536].End(xlUp).Row
Y = ¤u§@ªí2.[A65536].End(xlUp).Row
For M = 2 To x
If ¤u§@ªí1.Cells(M, 1) >= "105/01/08" And ¤u§@ªí1.Cells(M, 1) <= "105/03/05" Then
¤u§@ªí2.Cells(Y + 1, 1).Resize(, 6).Value = ¤u§@ªí1.Cells(M, 1).Resize(, 6).Value
    Y = Y + 1
  End If
  Next
End Sub
ù

TOP

Sub robert2()

a = InputBox("½Ð¿é¤J±Ò©l¤é´Á: ")
B = InputBox("½Ð¿é¤Jµ²§ô¤é´Á: ")
¤u§@ªí2.[A2:F65536].ClearContents
x = ¤u§@ªí1.[A65536].End(xlUp).Row
Y = ¤u§@ªí2.[A65536].End(xlUp).Row
For M = 2 To x
If ¤u§@ªí1.Cells(M, 1) >= a And ¤u§@ªí1.Cells(M, 1) <= B Then
¤u§@ªí2.Cells(Y + 1, 1).Resize(, 6).Value = ¤u§@ªí1.Cells(M, 1).Resize(, 6).Value
    Y = Y + 1
  End If
  Next
End Sub
ù

TOP

a.b ­Y§ï¬°Àx¦s®æ ¨Ò: ±Ò©l¤é´Á=¤u§@ªí2.RANGE("C1")
                                      µ²§ô¤é´Á=¤u§@ªí2.RANGE("C2")
«h­ì
If ¤u§@ªí1.Cells(M, 1) >= a And ¤u§@ªí1.Cells(M, 1) <= B Then
§ï
If ¤u§@ªí1.Cells(M, 1) >= ¤u§@ªí2.RANGE("C1") And ¤u§@ªí1.Cells(M, 1) <= ¤u§@ªí2.RANGE("C2") Then
ù

TOP

Sub robert2()
¤u§@ªí2.[A2:F65536].ClearContents
x = ¤u§@ªí1.[A65536].End(xlUp).Row
Y = ¤u§@ªí2.[A65536].End(xlUp).Row
For M = 2 To x
If ¤u§@ªí1.Cells(M, 1) >= ¤u§@ªí2.Cells(1, 3) And ¤u§@ªí1.Cells(M, 1) <= ¤u§@ªí2.Cells(2, 3) Then
¤u§@ªí2.Cells(Y + 1, 1).Resize(, 6).Value = ¤u§@ªí1.Cells(M, 1).Resize(, 6).Value
    Y = Y + 1
  End If
  Next
End Sub
ù

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD