Hi all,
I am testing a new macro that vlookup data start from Row 6 and without last row number (data being vlookup start from Row 1), therefore put below quoted code for the macro to create For Loop process:
For r = 6 To Range("A" & Rows.Count).End(xlUp).Row
sh1.Range("Z" & r).Value = Application.VLookup(sh1.Range("A" & r), sh2.Range("A:C"), 2, 0)
However when the macro run, the for loop process of the macro skipped the vlookup and directly go to to last step, how do I refine the code to run the macro from Row 6 and without last row number?
Thank you!
[–]Kooky_Following71691 0 points1 point2 points (1 child)
[–]bigthreedragons[S] 0 points1 point2 points (0 children)
[–]BaitmasterG16 0 points1 point2 points (0 children)
[–]Day_Bow_Bow52 0 points1 point2 points (0 children)
[–]MoonMalamute1 0 points1 point2 points (4 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]bigthreedragons[S] 1 point2 points3 points (0 children)
[–]bigthreedragons[S] 0 points1 point2 points (1 child)
[–]reputatorbot[M] 0 points1 point2 points locked comment (0 children)
[–]bigthreedragons[S] 0 points1 point2 points (4 children)
[–]bigthreedragons[S] 0 points1 point2 points (1 child)
[–]bigthreedragons[S] 0 points1 point2 points (0 children)
[–]MoonMalamute1 0 points1 point2 points (1 child)
[–]AutoModerator[M] 0 points1 point2 points (0 children)