Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

how to select text in active cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
turneg02 - 29 Jul 2005 02:38 GMT
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
Jezebel - 29 Jul 2005 03:17 GMT
selection.Cells(1).Range.Select

> 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
Doug Robbins - 29 Jul 2005 04:54 GMT
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.

Signature

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

> 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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.