
Dim x, As Integer
x = 5
For i = 5 To 7000
If (Cells(i, 40) = "") Then
Exit For
ElseIf (Cells(i, 40) <> "NO") Then
Cells(x, 42) = Cells(i, 40)
Cells(x, 43) = Cells(i, 41)
x = x + 1
End If
Next
-------------------------------------------------
Dim x, k As Integer
x = 5
k = 5
Do While (Cells(k, 40) <> "")
If (Cells(k, 40) <> "NO") Then
Cells(x, 42) = Cells(k, 40)
Cells(x, 43) = Cells(k, 41)
x = x + 1
End If
k = k + 1
Loop
|
'All'inizio del ciclo inserisci:
With Application
.EnableEvents = False
.Calculation = xlCalculationManual
.ScreenUpdating = False
End With
'-------------------------------------
'Inserisci qui il tuo codice
'-------------------------------------
'Al terminare del ciclo inserisci:
With Application
.EnableEvents = True
.Calculation = xlCalculationAutomatic
End With |
