Excel 2013 VBA: Changed behaviour of UBound when array is empty -


after hours of testing, found out ubound behaves differently in excel 2013 , excel 2010 when array empty: in excel 2010, ubound(emptyarray) results in 0, whereas in excel 2013 "subscript out of range" error (which expect).

can confirm change in behaviour?

thank you,

best regards,

alexander

i can confirm ubound raises runtime error 9 "subscript out of range" on empty array in excel versions 95 2016.

if doesn't you, it's either not ubound function you're calling (is blue in source code?) or array not empty.

there slim chance office vba bug introduced @ point in v2010 , promptly fixed, not aware of it.


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -