使用Excel VBA定义新单元格时出错

如果cell(10,1)从不使用,则尝试执行以下代码时出现错误。

 Dim targetCell As Range targetCell = Cells(10, 1) 

谁能告诉我为什么?

几天前我刚刚开始阅读VBA书(这可能是错误的):

 Set targetCell = Cells(10, 1)