Joining two arrays in vba?
问题 How do I combine these arrays with the outcome of (2, 4, 5, 3, 7, 6) ? array1 = Array(4,5,3,7,6) array2 = Array(2) 回答1: You could potentially Join() and concatenate your two arrays, and then Split() the result back to a new array: array3 = Split(Join(array2, ",") & "," & Join(array1, ","), ",") Explanation: Join() will return a string that has each element in the array (first parameter) delimited by a "," (second parameter). We concatenate those two joined arrays with one more comma to get a