Raghava@rock
Member
Hi Team,
Below is the code I am using with "FOR loop to concatenate the value in each row of column 2 ,3,4,5.which is taking long time as I have more than 25000 rows.
while I have searched in google WITH Statement is something that I am thinking to sue to get the task done more quick.
Could you suggest me how to use with statement in this regard or any improvisation to the above code for fast run time.
Thanks
Mod edit: Code Tags added
Below is the code I am using with "FOR loop to concatenate the value in each row of column 2 ,3,4,5.which is taking long time as I have more than 25000 rows.
while I have searched in google WITH Statement is something that I am thinking to sue to get the task done more quick.
Code:
For CurrRow = 13 To CurrLastrow
If Sheets("Curr-wk").Cells(CurrRow, 2).Value <> "" Then
CurrTEXT = Sheets("Curr-wk").Cells(CurrRow, 2).Value & "$" & Sheets("Curr-wk").Cells(CurrRow, 3).Value & "$" & Sheets("Curr-wk").Cells(CurrRow, 4).Value & "$" & Sheets("Curr-wk").Cells(CurrRow, 5).Value
Sheets("Curr-wk").Cells(CurrRow, 1).Value = CurrTEXT
Else
End If
Next
Could you suggest me how to use with statement in this regard or any improvisation to the above code for fast run time.
Thanks
Mod edit: Code Tags added
Last edited by a moderator: