📜  excel vba 用单元格值填充数组 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:57.409000             🧑  作者: Mango

代码示例1
Sub from_sheet_make_array()
   Dim thisarray As Variant
   thisarray = Range("a1:a10").Value

   counter = 1                'looping structure to look at array
   While counter <= UBound(thisarray)
      MsgBox thisarray(counter, 1)
      counter = counter + 1
   Wend
End Sub