When trying to define a range in an external workbook, sometimes Range()
doesn't accept taking Cells()
as an argument e.g. Set range = Workbooks("<Workbook>").Sheets("<Worksheet>").Range(Cells(1,2), Cells(3,2)
, and I get the following error:
Run-time error '1004' Application-defined or object-defined error
however, this error is gone if I set the range using Range("B1:B3")
, instead.
So, what are the possible causes of this issue?