Pavitra Srinivasan
New Member
Hi Dear,
I'm Beginner in Macro. Excel,
I have a large data like (5.6L & 8.6L) i want to do VLOOKUP.
It is taking more than 10 Hurs. immediately excel go to not responding mode.
please give me best solution and aslo plz refer my code attached for your reference.
>>> use code - tags <<<
plz repely as soon as possible.
I'm waiting for your answer.
I'm Beginner in Macro. Excel,
I have a large data like (5.6L & 8.6L) i want to do VLOOKUP.
It is taking more than 10 Hurs. immediately excel go to not responding mode.
please give me best solution and aslo plz refer my code attached for your reference.
>>> use code - tags <<<
Code:
wsTemp.Activate
lr = wsTemp.Cells(Rows.Count, 1).End(xlUp).Row
lc = wsTemp.Cells(1, Columns.Count).End(xlToLeft).Column
For j = 2 To lrow
On Error Resume Next
Lookup = wsDump.Cells(j, 7).Value
wsDump.Cells(j, 20).Formula = Application.WorksheetFunction.VLookup(Lookup, Range(wsTemp.Cells(2, 1), wsTemp.Cells(lr, lc)), 2, 0)
wsDump.Cells(j, 21).Formula = Application.WorksheetFunction.VLookup(Lookup, Range(wsTemp.Cells(2, 1), wsTemp.Cells(lr, lc)), 3, 0)
wsDump.Cells(j, 22).Formula = Application.WorksheetFunction.VLookup(Lookup, Range(wsTemp.Cells(2, 1), wsTemp.Cells(lr, lc)), 4, 0)
wsDump.Cells(j, 23).Formula = Application.WorksheetFunction.VLookup(Lookup, Range(wsTemp.Cells(2, 1), wsTemp.Cells(lr, lc)), 5, 0)
Next
On Error GoTo 0: On Error GoTo -1
Application.CutCopyMode = False
plz repely as soon as possible.
I'm waiting for your answer.
Last edited by a moderator: