I use the Bloomberg BDF function in a spreadsheet cell and it works fine. What I want to do is use the same function (or an equivalent) in VB code and I can't seem to find any documentation on how to do this.
I assumed I could just type something like WorksheetFunction.BDF in VB after including references to the Bloomberg libraries in the VB editor. However, on compilation, the function is never recognized. I don't know if this is because the whole approach is wrong (or some step is missing) or whether BDF as a spreadsheet cell function is replaced by something different by Bloomberg for VB.