I got in trouble in a part of my code. I have an variable that changes by the the number of filled rows.I have defined an array from 0 to that number but I receive "Constant Expression Required" Error. I would be thankful if anyone could help me.
Sub test()
Lastrow = Cells.Find("*", [A1], , , xlByRows, xlPrevious).Row
Dim f(0 To Lastrow) As Double
End Sub