VBA DDB function in Excel is categorized as Financial function. This is a built-in Excel VBA Function. This function calculates the future value of an asset over a specified period of time.
We can use this function in VBA and can’t use in Excel. This function we use in either procedure or function in a VBA editor window in Excel. We can use this VBA DDB Function in any number of times in any number of procedures or functions. Let us learn what is the syntax and parameters of the DDB function, where we can use this DDB Function and real-time examples in Excel VBA.
The syntax of the DDB Function in VBA is
DDB(Cost, Salvage, Life, Period, [Factor])
The DDB function returns a double value.
The DDB function has five arguments in Excel VBA.
Cost:The Cost is a required argument.
Salvage:The Salvage is a required argument.
Life:The Life is a required argument.
Period:The Period is a required argument.
Factor:The Factor is an optional argument.
We can use this DDB Function in VBA MS Office 365, MS Excel 2016, MS Excel 2013, 2011, Excel 2010, Excel 2007, Excel 2003, Excel 2016 for Mac, Excel 2011 for Mac, Excel Online, Excel for iPhone, Excel for iPad, Excel for Android tablets and Excel for Android Mobiles.
You can refer the following link for the step by step instructions.
Click on the following links of the useful resources. These helps to learn and gain more knowledge.