标签: arrays excel excel-vba vba
我有一个动态数组,在尝试打印时,我收到错误:
运行时错误'9': 下标超出范围
运行时错误'9':
下标超出范围
我有以下代码:
Dim newTBArray As Variant newTBArray = Range(newTBSheet.Cells(2, 1), newTBSheet.Cells(lastRow, 1)).Value Debug.Print newTBArray(2)