I am receiving a "type mismatch" error on the line below.
ArrTemp(nn) = Application.WorksheetFunction.Log(Application.WorksheetFunction.Index(TempSample, nn, 2), Application.WorksheetFunction.Index(TempSample, NumObs, 2))
ArrTemp is a variant, TempSample is a variant, nn is an integer, NumObs...