I've been trying to convert a cell in VBA which is like this:
I am 99 years old and I was born in 1918.
Into an array that would contain and display on the cell as:
[99,1918]
Here is my code:
Sub ConvertColumnToArray(Length As Integer)
Dim i As Integer, infoArray As Variant
Set Column = Sheets("Short Desc")
For i = 2 To Length
infoArray = StringToIntArray(Column.Range("A" & i))
Column.Range("A" & i) = "[" & infoArray(0) & "," & infoArray(1) & "]"
End For
End Sub
Function StringToIntArray(str As String) As Variant
'the code to add
End Function

