V
vsoler
Hi,
The below function count the number of rows of a vertical range. It
works fine.
=test(A1:A5) 'gives 5
However, sometimes I need to call it this way:
=test({1\2\3}) 'does not work
How should I modify my function so that it accepts both inputs?
Thank you
---------------------------------------------------------------
Function test(a)
test = a.Rows.Count
End Function
Vicente Soler
The below function count the number of rows of a vertical range. It
works fine.
=test(A1:A5) 'gives 5
However, sometimes I need to call it this way:
=test({1\2\3}) 'does not work
How should I modify my function so that it accepts both inputs?
Thank you
---------------------------------------------------------------
Function test(a)
test = a.Rows.Count
End Function
Vicente Soler