in reply to Re: Re: How do I Selecting All in a MSWord doc?
in thread How do I Selecting All in a MSWord doc?

I'm sure that it can. I read your question as "how do I select all of the text" instead of "how do I select everything". Create yourself an MS Word macro that selects everything in an MS Word doc and then view the code of the macro. It will give you the information you seek.
  • Comment on Re: Re: Re: How do I Selecting All in a MSWord doc?

Replies are listed 'Best First'.
Re: Re: Re: Re: How do I Selecting All in a MSWord doc?
by LameNerd (Hermit) on Jan 24, 2003 at 23:57 UTC
    great Idea!
    Here's what I got:
    Sub LN_Select_all()
    '
    ' LN_Select_all Macro
    ' Macro recorded 1/24/03 by LameNerd
    '
        Selection.WholeStory
        Selection.Copy
    End Sub
    
    This tells me that I should change my Perl code from:
    my $select1=$WordDoc1->SelectAll() or die "Could not do SelectAll() on doc1\n"; $select1->Copy();
    to:
    my $select1=$WordDoc1->WholeStory() or die "Could not do WholeStory() on doc1\n"; $select1->Copy();
    right?