Hello everyone,
I created a Lambda function that works perfectly for me,
I assigned this function in name manager called "Conversion".
if I manually enter the following in a cell H16 for instance, the formula works perfectly and I get the result I need.
(H16 is part of a table, so that is why you see column references in the code)
(Also, ConversionTable is just another table created to fine the result I need)
I am now trying to enter this exact same code, in cell H17, using the following VBA code,
The problem I am having is with the '(Conversion(G16,F16)' portion. the G16 and F16 need to represent the current row I am working on, in this case 17. But they stay consistent at G16 and F16.
I tried changing the G16 to "range("G" & selection.row).value)' and did the same thing for the F16
So my VBA Code looks like this,
how ever I instantly get a compile error, expected end of statement and the "G" in 'range("G" & selection.row).value' is highlighted.
I hope all this makes sense, I tried to be as detail as I could.
Does anyone know how to insert a lambda function using VBA where the variable(s) needed are dynamic and are base on the current row you are working on.
Bookmarks