I have a question about Excel 2010 VBA. Done plenty of searching for a solution but the answers don’t address my issue. Hoping that the stackoverflow community will be able to shed some light for me.
I have a user written function that is called from cells in a worksheet. It is called with two parameters – both cells on the same sheet.
The aim of the function is to review the two parameters and to return a string as the result of the function depending upon their values.
This far the functions works as expected.
However, if the value of the first parameter has a certain value, I want to be able to change the value of the second parameter. This is where I get stuck. I cannot find any way to alter its value.
I have tried just setting the parameter to the desired value but that causes an error. I thought I might be able to set up a pointer to the active sheet and hence the cell but I don’t know what its reference is (as there will be many on the sheet).
To be honest, I am not sure that I can do what I need. Any thoughts or comments on a way forward will be gratefully received.
With regards
Graham Jones