A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

text select in table



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2005, 03:53 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default text select in table

Hello. If I have a line of text in a document, place the cursor in the
middle of the line, and hit shift-end, it selects the text from the
cursor to the end of the line, leaving unselected the text before the
cursor. If I do the same thing inside a table cell, it always selects
all the text in the cell which isn't what I want. Is there a way to
make it stop doing that?

Thanks,
Irwin

  #2  
Old December 11th, 2005, 04:48 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default text select in table

Shift+End, selects everything to the end of the line. In the case of a
single line, or the last line, of text in the cell of a table, "everything"
includes the end of cell marker, and including that marker in the selection
causes the whole cell to be selected.

I realise that it is not what you want, but that is the way it works. The
only way around it is to use the mouse to do the selecting.

--
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

wrote in message
ups.com...
Hello. If I have a line of text in a document, place the cursor in the
middle of the line, and hit shift-end, it selects the text from the
cursor to the end of the line, leaving unselected the text before the
cursor. If I do the same thing inside a table cell, it always selects
all the text in the cell which isn't what I want. Is there a way to
make it stop doing that?

Thanks,
Irwin



  #3  
Old December 11th, 2005, 05:26 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default text select in table

Thanks. I wonder why it has to work this way. The real problem is that
I was trying to write a VBA script to do this, in which case using the
mouse won't work. I could try to figure out how to extend to the end-1,
but I don't know how to do that yet. If you know, I would love a tip,
otherwise I will just keep struggling with it until I get it.

Thanks,
Irwin

  #4  
Old December 11th, 2005, 05:30 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default text select in table

Actually, that does work. I was thinking it would lose where the cursor
sat in the text, but if one selects to the end and then uses the left
arrow key, you get what you want. A VBA script can do that, so I have
what I need. Thanks,

IMF

  #5  
Old December 11th, 2005, 07:57 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default text select in table

This is one way to do it using vba

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

But, if you do not need to select it, don't. myrange.Text will return the
text that would have been selected, so you for instance, insert that text in
another location by using

[object].InsertBefore myrange.Text

--
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

wrote in message
oups.com...
Actually, that does work. I was thinking it would lose where the cursor
sat in the text, but if one selects to the end and then uses the left
arrow key, you get what you want. A VBA script can do that, so I have
what I need. Thanks,

IMF



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word applies direct format on File open Uriel General Discussion 16 November 27th, 2005 07:22 PM
Is Access even the right idea? BMB New Users 19 November 21st, 2005 08:01 PM
Access combo box-show name, not ID, in table? write on New Users 30 April 30th, 2005 09:11 PM
Table Design A. Williams Database Design 3 April 29th, 2005 07:02 PM
Help with design Ronnie Database Design 6 March 12th, 2005 02:53 PM


All times are GMT +1. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.