how to select text in active cell?
sometimes the cell has more than one line so it needs to be able to select
that aswell

thanks

Re: how to select text in active cell? by Jezebel

Jezebel
Thu Jul 28 21:17:04 CDT 2005

selection.Cells(1).Range.Select

"turneg02" <turneg02@discussions.microsoft.com> wrote in message
news:13E9F2B3-E754-4965-9CD7-B45ACC7E6206@microsoft.com...
> how to select text in active cell?
> sometimes the cell has more than one line so it needs to be able to select
> that aswell
>
> thanks



Re: how to select text in active cell? by Doug

Doug
Thu Jul 28 22:54:43 CDT 2005

Dim myrange as Range
Set myrange = Selection.Cells(1).Range
myrange.End = myrange.End - 1

myrange.Text will then contain just the text from the cell, the final line
of code having stripped off the end of cell marker which you probably do not
want.

--
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
"turneg02" <turneg02@discussions.microsoft.com> wrote in message
news:13E9F2B3-E754-4965-9CD7-B45ACC7E6206@microsoft.com...
> how to select text in active cell?
> sometimes the cell has more than one line so it needs to be able to select
> that aswell
>
> thanks