将数组声明为动态数组,使用时重新定义即可: dim dataArray() …… redim dataArray(0 to 2) …… ref:http://www.ittribalwo.com/article/1507.html