I have two worksheet ThreshXHigh.xlsx and MasterSheet.xlsx in workbook called MasterSheet.xlsm
I want to perform vlookup in MasterSheet.xlsx work sheet in ColumnC. My Source cell is Column B of same MasterSheet.xlsx and Table to look up is in another sheet ThreshXhigh.xlsx cloumn B to U but row value has to be dynamic.
I wrote below code but now have to define "Master" table which gives me table range from ThreshXhigh.xlsx sheet (dynnamic). Can some one please suggest how to define same.
x = 2
While Cells(x, 1).Value <> ""
Cells(x, 3).Value = "=vlookup(B" & x & "& " & Chr(34) & "left(C1,1)" & Chr(34) & ",Master,5,false)"
x = x + 1
Wend
I want to perform vlookup in MasterSheet.xlsx work sheet in ColumnC. My Source cell is Column B of same MasterSheet.xlsx and Table to look up is in another sheet ThreshXhigh.xlsx cloumn B to U but row value has to be dynamic.
I wrote below code but now have to define "Master" table which gives me table range from ThreshXhigh.xlsx sheet (dynnamic). Can some one please suggest how to define same.
x = 2
While Cells(x, 1).Value <> ""
Cells(x, 3).Value = "=vlookup(B" & x & "& " & Chr(34) & "left(C1,1)" & Chr(34) & ",Master,5,false)"
x = x + 1
Wend