It takes more than 5 minutes to run this code in a spreadsheet with more than 60.000 rows
The code below looks at the value in column "C" and if the value = Paris then the the relative cell in column "A" is updated with the value "code001"
Dim LastRow As Long
' Dim i As Long
' LastRow = Range("C" & Rows.Count).End(xlUp).Row
' For i = 2 To LastRow
' If Range("C" & i).Value = "Paris" Then
' Range("A" & i).Value = "code001"
' End If
' Next i
Is there any alternative to speed it up?
The code below looks at the value in column "C" and if the value = Paris then the the relative cell in column "A" is updated with the value "code001"
Dim LastRow As Long
' Dim i As Long
' LastRow = Range("C" & Rows.Count).End(xlUp).Row
' For i = 2 To LastRow
' If Range("C" & i).Value = "Paris" Then
' Range("A" & i).Value = "code001"
' End If
' Next i
Is there any alternative to speed it up?