Hello,
I've the following problem. I use the following code.
When I execute this function =SumAll(4,3,2) it displays the following messages:4,3,2. This is fine, but when I add comment
I get the following messages: 4,3,2,1,26,3,4,5,6,6,1,3,5,4
Then I execute the same function one more time and I get: 4,3,2.
If I change or delete comment, I get: 4,3,2,1,26,3,4,5,6,6,1,3,5,4.
Execute one more time and I get: 4,3,2.
I use Excel 2013.
Thanks.
I've the following problem. I use the following code.
Code:
Function SumAll(ParamArray var() As Variant) As Integer
For i = 0 To UBound(var)
MsgBox var(i)
Next
End Function
When I execute this function =SumAll(4,3,2) it displays the following messages:4,3,2. This is fine, but when I add comment
Code:
Function SumAll(ParamArray var() As Variant) As Integer
'test
For i = 0 To UBound(var)
MsgBox var(i)
Next
End Function
I get the following messages: 4,3,2,1,26,3,4,5,6,6,1,3,5,4
Then I execute the same function one more time and I get: 4,3,2.
If I change or delete comment, I get: 4,3,2,1,26,3,4,5,6,6,1,3,5,4.
Execute one more time and I get: 4,3,2.
I use Excel 2013.
Thanks.