I have a sheet with numerous Global variables declared in VBA with part of the name determined by a tenor, e.g. Pillar3m, Pillar6m, etc. I would like to use a UDF to be able to return these values based on the tenor. So if I ask for "3m" I get the Pillar3m value etc. I cannot seem to work out a means to be able to concatenate the value. For example
Does not work. Is it possible, and if so, how?
Thanks
Code:
Application.Evaluate("Pillar" & tenor)
Thanks