SyntaxFix
Write A Post
Hire A Developer
Questions
For your copy and paste ease
' add item to array Function AddItem(arr, val) ReDim Preserve arr(UBound(arr) + 1) arr(UBound(arr)) = val AddItem = arr End Function
Used like so
a = Array() a = AddItem(a, 5) a = AddItem(a, "foo")