Good Morning,
I have a vlookup that keeps throwing an error code, but only after it has completed it's job. It will populate all of the cells in the desired range with the correct values and then throw the error. Can anyone tell me what's going wrong with this?
Thanks in advance!
I have a vlookup that keeps throwing an error code, but only after it has completed it's job. It will populate all of the cells in the desired range with the correct values and then throw the error. Can anyone tell me what's going wrong with this?
Code:
Dim v As Integer
v = 2
Do While Cells(v, 1) <> ""
Dim Bvalue As String
Bvalue = Application.WorksheetFunction.VLookup(Report.Sheets(2).Cells(v, 1).Value, _
Workbooks("Internal.xls").Sheets(1).Range("A:G"), 7, False)
Report.Sheets(2).Cells(v, 2).Value = Bvalue
v = v + 1
Loop
Thanks in advance!