WorksheetFunction.Sln Method
Returns the straight-line depreciation of an asset for one period.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Sln ( _
Arg1 As Double, _
Arg2 As Double, _
Arg3 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Double
Dim returnValue As Double
returnValue = instance.Sln(Arg1, Arg2, _
Arg3)
double Sln(
double Arg1,
double Arg2,
double Arg3
)
Parameters
Arg1
Type: System.DoubleCost - the initial cost of the asset.
Arg2
Type: System.DoubleSalvage - the value at the end of the depreciation (sometimes called the salvage value of the asset).
Arg3
Type: System.DoubleLife - the number of periods over which the asset is depreciated (sometimes called the useful life of the asset).
Return Value
Type: System.Double