I need to use a vlookup function where I would get all the arguments from different functions and use them here.
Eg: ActiveCell.Formula= “=VLOOKUP(B2, ‘sheet 2’!$A:$I, 4, FALSE)
I would like to write this as:
VLOOKUP(element, f_range, col_num, true_false)
Currently, I only want the column to be dynamic, but in the future, I would require all these to be dynamic.
"=VLOOKUP(" & element & "," & f_range & "," & col_num & "," true_false & ")"don't forget the commas because they are aswell on the formula.&is a concatenate operator, it will put together everything you are joining with it.