How to pass an array to a function in VBA?
This seems unnecessary, but VBA is a strange place. If you declare an array variable, then set it using Array() then pass the variable into your function, VBA will be happy. Sub test() Dim fString As String Dim arr() As Variant arr = Array(“foo”, “bar”) fString = processArr(arr) End Sub Also your function processArr() could … Read more