Experimente>
Sub teste()
Dim lRow As Long, x As Integer
x = 2
With Sheets("Sheet1")
For lRow = 6 To .Range("H" & Rows.Count).End(xlUp).Row
If .Cells(lRow, 8) = "X" Then
Sheets("Sheet2").Cells(x, 1) = .Cells(lRow, 9)
Sheets("Sheet2").Cells(x, 2) = .Cells(lRow, 10)
Sheets("Sheet2").Cells(x, 3) = .Cells(lRow, 11)
x = x + 1
End If
Next
End With
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 21/04/2013 2:33 pm