Word 2003. Range Selection that spans a Table Cell

D

DriveBlind

Hi,

I am using Word 2003 and are specifying a range object. The start of
the range object is halfway within text that lies in a table cell,
while the end of the range is outside of the table.

I then need to select the range and delete it.

The problem is as follows :- when I do Range.Select, the whole of the
table cell become selected even though I specified the start position
of the range to be a specific place in the text that is contained
within that cell. I presume that the whole of the cell is being
selected because the end of my range is outside of the table.

Any ideas how I can stop the whole cell being selected or any other
workaround.

Cheers
 
J

jalanford

DriveBlind said:
Hi,

I am using Word 2003 and are specifying a range object. The start of
the range object is halfway within text that lies in a table cell,
while the end of the range is outside of the table.

I then need to select the range and delete it.

The problem is as follows :- when I do Range.Select, the whole of the
table cell become selected even though I specified the start position
of the range to be a specific place in the text that is contained
within that cell. I presume that the whole of the cell is being
selected because the end of my range is outside of the table.

Any ideas how I can stop the whole cell being selected or any other
workaround.

Cheers

The first thing I would check is the settings on the "Edit" tab under
Tools--Options. You want to make sure you don't have any "smart"
selection/select options checked.

Cheers

Jeff
 
T

Tony Jollans

I'm afraid you can't do it. A range cannot include partial cell contents and
anything else outside the cell at the same time - exactly the same is true
if you try to do it from the UI. You will have to do your deletion in (at
least) two stages.

Incidentally you do not need to Select the range to delete it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top