Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arrays in VBA
#1
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
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Messages In This Thread
Arrays in VBA - by Qomplainerz - 07-27-2023, 07:15 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)