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

[µo°Ý] ¿é¤JªÑ¼Æ¦Û°ÊÂà¦s

¦^´_ 1# owen9399
  1. Sub ¿é¤J()
  2. If [D2] >= 5000 Then
  3.    With Sheets("Sheet2")
  4.      LR2 = .[A65536].End(xlUp).Row + 1
  5.      Sheets("Sheet1").[A2:F2].Copy .Cells(LR2, "A")
  6.      .Cells(LR2, "E") = .Cells(LR2, "C")
  7.    End With
  8. Else
  9.    With Sheets("Sheet3")
  10.      LR3 = .[A65536].End(xlUp).Row + 1
  11.      Sheets("Sheet1").[A2:F2].Copy .Cells(LR3, "A")
  12.      .Cells(LR3, "E") = 0
  13.    End With
  14. End If
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# owen9399
  1. Sub ¿é¤J()
  2. If [D2] >= 5000 Then
  3.    With Sheets("Sheet2")
  4.      LR2 = .[A65536].End(xlUp).Row + 1
  5.      Sheets("Sheet1").[A2:F2].Copy .Cells(LR2, "A")
  6.      .Cells(LR2, "E") = .Cells(LR2, "C")
  7.    End With
  8. Else
  9.    With Sheets("Sheet3")
  10.      LR3 = .[A65536].End(xlUp).Row + 1
  11.      Sheets("Sheet1").[A2:F2].Copy .Cells(LR3, "A")
  12.      .Cells(LR3, "E") = 0
  13.    End With
  14. End If
  15. Sheets("Sheet1").[A2:F2] = ""
  16. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : °ß¨ä´L­«¦Û¤vªº¤H¡A¤~§ó«i©óÁY¤p¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD