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