Hello...getting an 'argument not optional' message when testing first
attempt at DDB
Option Explicit
Dim cost As Double
Dim salvage As Double
Dim life As Double
Dim period As Double
Dim factor As Variant
Dim depreciation As Double
Private Sub Command1_Click()
salvage = 200
life = 10
period = 1
factor = 2
cost = CDbl(Text1)
depreciation = DDB(((cost - salvage) * factor) / life) * period
Label2 = Format((depreciation), "000.00")
End Sub
....any suggestions much appreciated.