Can anyone help me to change this array to a multidimensiona l array with 1 more components i want to add another "column" to the array with a similiar specification of "cell.Offse t(0, -2).Value". So, actually want to add one more "column" as well, but it will contain another amount of similiar values of undetermined length as well. My Code is below, which also contains a section that puts the array into another sheet. Thank you all.
Code:
Public Sub DIFFREC()
Dim cell As Variant
Dim rw As Integer
Dim x As Integer
'Dim rwCt As Integer
'rwCt = Range("myRange").Count
Dim arrTicker() As String
rw = 1 ' array counter
For Each cell In Range("myRange")
If Abs(cell.Value) > 0 Then
ReDim Preserve arrTicker(rw)
arrTicker(rw - 1) = cell.Offset(0, -3).Value
rw = rw + 1
End If
Next cell
Windows("SENTRY.DIFF.05.07.xls").Activate
For rw = 1 To UBound(arrTicker)
x = x + 1
Cells(x + 2, 1).Value = arrTicker(rw - 1)
Next
End Sub
Comment