
Sheets(2).Cells.ClearContents
r = 1
For i = 1 To Range("c" & Rows.Count).End(xlUp).Row 'c è la colonna con i valori
If Cells(i, 3) > 0 Then '3 è la colonna C
Sheets(2).Rows(r) = Rows(i).Value
r = r + 1
End If
Next
|
Sheets(2).Cells.ClearContents
r = 10
For i = 1 To Range("e" & Rows.Count).End(xlUp).Row
If IsNumeric(Cells(i, 5)) = True And Cells(i, 5) > 0 Then
Sheets(2).Rows(r) = Rows(i).Value
r = r + 1
End If
Next |
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 6 Then
'...codice
End If
End Sub
|
