Multidimensional Array possible with Ubound?

I thought this would be possible:

Dim laub, caub As Integer
laub = lineArr.Ubound
caub = cellArr.Ubound
Dim multiArr(laub,caub) As String

But it appears it’s not.
Am I missing something?

I believe what you want is below:

  Dim laub, caub As Integer
  laub =  lineArr.Ubound
  caub = cellArr.Ubound
  Dim multiArr(-1,-1) As String
  ReDim multiArr(laub, caub)

The issue is that the arguments of Dim must be a constant or literal number, not a variable.

I see, thank William.