I am working on some Excel functions using VB, but I am stuck on some examples. The current version is Excel 2007, using an empty workbook; I added to the module and tried to perform the following functions:
Function Addtwo(a, b)
Addtwo = a + b
End Function
However, I get the error #VALUE! in my cell when I do Addtwo (5.5). When trying to make Addtwo (B2, B3) Excel tells me that my formula is incorrect.
Thank,
Shyam source
share