In using or setting Ranges, some Ranges behave differently that other Ranges. For example,
ActiveDocument.Range(10, 20).Select
ActiveDocument.Tables(2).Cell(1, 1).Range(10, 20).Select
The first line if OK and works as expected. The second line produces an error on the Range statement, although it seems that two lines should be identical for this.
What is the difference?
Rangeon aCellis a property, not a method — it returns the range of the document represented by the cell.This means you can’t add arguments like
(10,20).The following is equivalent: