Array

Public Function Array(Optional ByVal Paramarray Items As Variant)

Returns an array with the specified items.

Note: Arrays can also be written as: {Value, Value, Value}

Dim lItem As Long
For Each lItem In Array(1, 2, 4, 8, 16)
   SendDebug lItem, lItem * lItem
Next

'Alternative syntax
For Each lItem In {1, 2, 4, 8, 16}
   SendDebug lItem, lItem * lItem
Next

See also: