I have a String value in A1
.
Why is it that if I run the following code it captures the value correctly:
arrInputData(1, 1) = Worksheets("inputData").Range("A1")
However, a slight change to it
arrInputData(1, 1) = Worksheets("inputData").Range(Cells(1, 1), Cells(1, 1))
throws the following error:
Runtime error 1004. Application defined or object defined error
Thank you!