VBAを初めて使用しています...この行の最初のセルにXと表示されている場合は、Sheet2からSheet1に行をコピーします。基準。 If条件にエラーがあります...修正方法がわかりません。別のシートに条件を満たすVBAコピー行
Sub LastRowInOneColumn()
'Find the last used row in a Column: column A in this example
Worksheets("Sheet2").Activate
Dim LastRow As Long
With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
End With
MsgBox (LastRow)
For i = 1 To LastRow
If Worksheet.Cells(i, 1).Value = "X" Then
ActiveSheet.Row.Value.Copy _
Destination:=Hoja1
End If
Next i
End Sub
[オートフィルター](http://stackoverflow.com/questions/11631363/how-to-copy-a-line-in-excel-using-a-specific-word-and-pasting-to-another- –
もし私がプログラミングを知っていたら、私はVBAを学んでいます... 2日後):これは私がコードについて理解できる方法です... – Anca