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 / January 2005

Tip: Looking for answers? Try searching our database.

Escaping from a text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oz Springs - 05 Jan 2005 00:11 GMT
I want to select all of a document, but if the cursor is in a text box, only
the text therein will be selected.

How can I get the cursor back into the main body of the document so I can
select all the text, including all anchored things like text boxes and
graphics?

Thanks for any help

Oz
Jean-Guy Marcil - 05 Jan 2005 06:55 GMT
Oz Springs was telling us:
Oz Springs nous racontait que :

> I want to select all of a document, but if the cursor is in a text
> box, only the text therein will be selected.
>
> How can I get the cursor back into the main body of the document so I
> can select all the text, including all anchored things like text
> boxes and graphics?

This will do the trick:
'_______________________________________
Dim StartRange As Range

'To save user selection
Set StartRange = Selection.Range

ActiveDocument.Range(Start:=0, End:=0).Select
Selection.WholeStory

Selection.Copy

'reset user selection
StartRange.Select
'_______________________________________

But why don't you tell us what you are doing? It may not be necessary to
actually select the whole document...

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Oz Springs - 06 Jan 2005 21:40 GMT
Jean-Guy

Thank you very much for this. I haven¹t checked it out yet, but shall do
shortly.

Kind regards

Oz

On 5/1/05 06:55, in article O9xjROv8EHA.2060@TK2MSFTNGP10.phx.gbl, "Jean-Guy
Marcil" <no-spam@leaveme.alone> wrote:

> Oz Springs was telling us:
> Oz Springs nous racontait que :
[quoted text clipped - 24 lines]
> But why don't you tell us what you are doing? It may not be necessary to
> actually select the whole document...
 
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.