Code: Select all
Why the array show only the first block of 5 items?
Option Explicit
Sub PRINT_BLOCCO()
Dim Y As Long, X As Long, RIGA As Long, WS As Worksheet
Dim strDBRows() As Variant
Set WS = Sheets("DATA_BASE")
RIGA = 3
Erase strDBRows()
For Y = 3 To 11
strDBRows = Array(WS.Range("B" & RIGA).Value, Trim$(WS.Range("E" & RIGA).Value), Trim$(WS.Range("F" & RIGA).Value), Right$(Trim$(WS.Range("G" & RIGA).Value), 11), Trim$(WS.Range("D" & RIGA).Value))
RIGA = RIGA + 1
Next Y
For X = LBound(strDBRows) To UBound(strDBRows)
Debug.Print strDBRows(X)
Next
Erase strDBRows()
End Sub