2
Good morning,
I’m extracting a database with dates and number of occurrences. But for my statistical model I need to organize it in a way that only the dates appear multiplied by the number of occurrences.
I understand that I have to make a loop to store the values to then use them, I managed with this code, but I do not know how to use these values to build my table, if anyone can help me, please:
Sub table_array()
Dim myTable As ListObject
Dim myArray As Variant
Set myTable = ActiveSheet.ListObjects("Tabela1")
myArray = myTable.DataBodyRange
'Loop through each item in the Table Array (displayed in Immediate Window [ctrl + g])
For x = LBound(myArray) To UBound(myArray)
Debug.Print myArray(x, 2)
Next