
Sub Copia_righe_criterio()
Dim rng As Range, cella As Range
Dim r As Integer
Application.ScreenUpdating = False
Set rng = [A1].CurrentRegion
With Sheets("Foglio2")
.Cells.Clear
For Each cella In rng.Rows
If cella.Columns(3).Value <> "" And cella.Columns(3) > 0 Then
cella.EntireRow.Copy
r = .[counta(a:a)] + 1
.Rows(r).Insert
End If
Next
.Select
MsgBox "Tabella copiata"
End With
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
|
