Hello Are in need for help with VBA for Excel 2002 (xp)
The problem is the following varStock and varMarket selects a number of cells.
However they doesn´t do that WHY?
Public Function CAPMBeta(varstock As Range, varMarket As Range) As Double
varVarians = Application.WorksheetFunction.Varians(varstock)
varCovarians = Application.WorksheetFunction.Kovarvarstock, varMarket)
CAPMBeta = CAPMBeta & varVarians / varCovarians
End Function
The problem is the following varStock and varMarket selects a number of cells.
However they doesn´t do that WHY?
Public Function CAPMBeta(varstock As Range, varMarket As Range) As Double
varVarians = Application.WorksheetFunction.Varians(varstock)
varCovarians = Application.WorksheetFunction.Kovarvarstock, varMarket)
CAPMBeta = CAPMBeta & varVarians / varCovarians
End Function