Skip to content

Instantly share code, notes, and snippets.

@yuyueugene84
Created July 30, 2019 03:35
Show Gist options
  • Save yuyueugene84/d55005d35d5b5cd918025146b8eb2293 to your computer and use it in GitHub Desktop.
Save yuyueugene84/d55005d35d5b5cd918025146b8eb2293 to your computer and use it in GitHub Desktop.
Sub CalculateCorr4()
Dim corrSheet As Worksheet
Set corrSheet = Worksheets("闽┦だ猂")
Dim portSheet As Worksheet
Set portSheet = Worksheets("щ戈舱厨筍だ猂")
Dim corr As Double
Dim i As Integer
For i = 2 To 13
corr = Application.WorksheetFunction.Correl(portSheet.Range("B2:B95").Value, _
portSheet.Range(portSheet.Cells(2, i), portSheet.Cells(95, i)).Value)
Debug.Print corr
Next i
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment