This example correlates cells B5 and B12 with a correlation coefficient of 0.3.
Range("B5:B12").Select CB.CorrelateND 0.3