Question Word page Ranges

walker81

New member
Joined
Feb 24, 2015
Messages
2
Programming Experience
Beginner
Hi Folks,

This is probably the most stupid question ever posted but I have run out of things to Google and still have no idea!

I have a winforms app that will open a word document and work out which pages it needs to copy, lets say it's pages 4 - 6. I intend to copy everything from those pages and paste into a new document.

The thing is, I can't figure out how to tell it which pages to copy. I was trying
VB.NET:
Dim rng As Word.Range = doc.Range(4, 6)
but this just gets the characters, not the pages. Any help would be gratefully received.

Thanks,

D
 
Last edited:

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,548
Location
Norway
Programming Experience
10+
Top Bottom