I'm new to using VBA, but looking to learn. I'm having trouble with the code for a correlation matrix function. The code is below and I keep getting a #NAME? error but I can't figure out where the issue is.
Function CorrelationMatrix(rng As Range) As Variant
Dim i As Integer
Dim j As...