
Sub Elimina_dati_input()
'
' Elimina_dati_input Macro
'
Dim LastRow As Integer
Dim row As Integer
Dim Righe As Boolean
Sheets("Righe").Select
LastRow = ActiveSheet.UsedRange.Rows.Count
For row = 1 To LastRow
If Cells(row, 1) = "TIME" Then
Rows(row).Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
End If
Next row
End Sub |
UltimaRiga = ThisWorkbook.Worksheets("Righe").Cells(Rows.Count, 1).End(xlUp).Row
For i = UltimaRiga To 1 Step by - 1
If ThisWorkbook.Worksheets("Righe").Cells(i, 2).Value = "X" Then
Rows(i).Delete
End If |
