07-27-2023, 07:15 AM
Description:
Arrays allow you to store multiple values of the same data type.
Example:
Sub ExampleArray()
Dim numbers(3) As Integer
numbers(0) = 1
numbers(1) = 2
numbers(2) = 3
numbers(3) = 4
MsgBox "The third number is: " & numbers(2)
End Sub
Arrays allow you to store multiple values of the same data type.
Example:
Sub ExampleArray()
Dim numbers(3) As Integer
numbers(0) = 1
numbers(1) = 2
numbers(2) = 3
numbers(3) = 4
MsgBox "The third number is: " & numbers(2)
End Sub