Hello Marcia,
I am using Word2002 on an XP Pro system. I am not trying to paste something onto the end of an existing document, I am trying to capture individual pages of a multipage word document to paste into another application. So I would like to be able to do something like
oDoc.range(page 3).copy()
but, of course, with correct syntax :) I thought would be easy, but the examples I see in Tamar/Dellas automation book talk about doing ranges based on text searches, word count, paragraphs, etc.
Thanks for the input
Bob
>Hi Robert.
>
>
I need a code snippit to select a page as a range and put it into the copy buffer. All I see is info on doing ranges by section, paragraph, etc but not by page.>
>I think that I am doing something similar in one of the applications that I am building right now. I use the following code to select and copy some content that I have built in a secondary docuemnt into the "main" document that I am in the process of creating:
>
>
>*** Now copy and paste the secondary stuff just generated into the main document
>*** the secondary stuff is in the document referenced as loSecondDoc
>*** Which is the active document at this point in time.
>*** The main document is open "behind" it in Word
>loWord.Selection.WholeStory()
>loWord.Selection.Copy()
>loSecondDoc.Close( .F. )
>loWord.Selection.Endkey( wdStory )
>loWord.Selection.Paste()
>
>
>You do not say which version of Word you are using, but I am using this technique to build documents using Word XP.
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'