End of cell command?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a keyboard command to select from the cursor to the end of a table
cell?

I have an auto-generated report that contains a lot of text I need to
delete. The text is in table cells. It's something like this:

"Good text.
-------------
Text I need to delete, which might be multiple paragraphs or bulleted
lists or whatever. "

I'm trying to write a macro to do this work automatically. I can search on
the dashed line, but from there, I need to select to end of cell. End of
paragraph is often not enough, and I have to be careful not select the whole
cell, just to the end of the cell.

Any ideas? Thanks!
 
Assign a macro containing the following commands to the keyboard

Dim myrange As Range
Set myrange = Selection.Cells(1).Range
myrange.Start = Selection.Range.Start
myrange.End = myrange.End - 1
myrange.Select


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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

Back
Top