ziad alsayed
Well-known Member
- Joined
- Jul 17, 2010
- Messages
- 665
dear all
the below code is looping over 20000 row , and it is taking a bit of time .
please advise how can i make it faster
appreciate any help
the below code is looping over 20000 row , and it is taking a bit of time .
please advise how can i make it faster
appreciate any help
Code:
For i = 2 To finalrow
Cells(i, 4).FormulaR1C1 = "=LEFT(RC[-1],1)"
Cells(i, 5).FormulaR1C1 = "=IF(RC[-1]=""1"",""PHC"",IF(RC[-1]=""2"",""Apapa"",IF(RC[-1]=""3"",""VI"",IF(RC[-1]=""4"",""Kano"",IF(RC[-1]=""5"",""Abuja"",IF(RC[-1]=""6"",""Ikeja"",""""))))))"
Next i