Hi Hank,
You are right.
I just found out something that I didn't see the difference.
Please explain. Thanks,
Sub Macro1()
Sheets("abc").Select
Range("A1").Select ' This one works
' Cells(1, 1).Select ' This one doesn't work, if a chart is
activated.
End Sub
The following is from on-line help on the Range property, and explains
why it doesn't need a qualifying object. (Typically the qualifying
object would be a reference to the worksheet that the range is on):
---------------------------
"When used without an object qualifier, this property is a shortcut
for ActiveSheet.Range (it returns a range from the active sheet; if
the active sheet isn’t a worksheet, the property fails)."
------------------------------
The Cells property is less forgiving. Thus you would need to qualify
it as (for example) :
'Only if abc is the current sheet!
'Otherwise, add the line
'Worksheets("abc").Select
'first.
Worksheets("abc").Cells(1, 1).Select