S
stickman373
Function test(drybulbtemp As Double, percentrelativehumidity As Double)
Selection.FormulaArray = "=INDEX(C[-4],MATCH(drybulbtemp
percentrelativehumidity,Dry_Bulb_Temp&Percent_Relating_Humidity,0))"
test = Selection.FormulaArray
End Function
what i am trying to do is create a function where you say the cell is:
=test(1,2)
and then it will run what I have above plugging in the values 1 and
into the function I have above and it will then output the value in th
same cell, but this isnt working, I know its not the way to do it, bu
i am new to vba and need this to work.
Currently this function just puts =test(1,2) in the cell :
Selection.FormulaArray = "=INDEX(C[-4],MATCH(drybulbtemp
percentrelativehumidity,Dry_Bulb_Temp&Percent_Relating_Humidity,0))"
test = Selection.FormulaArray
End Function
what i am trying to do is create a function where you say the cell is:
=test(1,2)
and then it will run what I have above plugging in the values 1 and
into the function I have above and it will then output the value in th
same cell, but this isnt working, I know its not the way to do it, bu
i am new to vba and need this to work.
Currently this function just puts =test(1,2) in the cell :