VBA中的动态数组
发布时间:2022-08-09 05:35:07 164
相关标签:
我正在用 VBA 学习编程逻辑,我正在尝试做一个数组,但我在运行时出错
Dim auxTexto As String
Dim auxNumero As Long
Dim auxIterador As Integer
Dim auxArrayEstatico(0 To 5) As Integer
Dim auxArrayDinamico As String
Sub prueba()
auxTexto = "Hola"
auxNumero = 1
auxArrayEstatico(0) = 2
auxArrayEstatico(1) = 2
auxArrayEstatico(2) = 2
auxArrayEstatico(3) = 2
auxArrayEstatico(4) = 2
MsgBox ("Valor de Array en posicion 3 es " & auxArrayEstatico(3))
ReDim auxArrayDinamico(0 To 3)
auxArrayDinamico(0) = "Hola"
MsgBox (auxArrayDinamico(0))
End Sub
错误说“编译错误,需要一个数组”请有人可以帮助我吗?
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报