Merry Christmas all. I'm new to VBA and excel for that matter. I only know how to program in python. I'm trying to create a fairly long macro but am encountering a lot of problems. First, I want to create an array of zeros, which has length equal to the length of the selected cells. I thought this would do it (where the array is called "Split"):
Sub mymacro()
Dim Split(Selection.Rows.Count) As Integer
End Sub
But I get the "constant value expected" error. How can I do it? Cheers