Hello Guys,
I would like to know what is the problem with the below code. Basically, I am doing a vlookup on V2 by looking up the value of D4 from inserted name("salesManagers"). I hope to do Autofilldown for V column and copy/paste special value.
Sub Test()
Dim iiii as Long
'Insert Range Names
Sheets("Vendorlist").Range("A:B").CurrentRegion.Name = "SalesManagers"
'vlookup
For iiii = 2 To Range("A65536").End(xlUp).Row
Range("V2") = Application.VLookup(Cell(iiii, 4), Range("SalesManagers"), 2, 0)
Next iiii
End Sub
I would like to know what is the problem with the below code. Basically, I am doing a vlookup on V2 by looking up the value of D4 from inserted name("salesManagers"). I hope to do Autofilldown for V column and copy/paste special value.
Sub Test()
Dim iiii as Long
'Insert Range Names
Sheets("Vendorlist").Range("A:B").CurrentRegion.Name = "SalesManagers"
'vlookup
For iiii = 2 To Range("A65536").End(xlUp).Row
Range("V2") = Application.VLookup(Cell(iiii, 4), Range("SalesManagers"), 2, 0)
Next iiii
End Sub