Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not a member of 'Microsoft.Office.Interop.Word.Range'

Status
Not open for further replies.

christer99

IS-IT--Management
Dec 3, 2001
247
Getting errors, what am I missing?

'Selection' is not a member of 'Microsoft.Office.Interop.Word.Range'.

Name 'wdGoToPage' is not declared.

'ActiveDocument' is not declared.

I am using VB 2003 Enterprise and writing a program that opens and copies pages into a new Word document.
 
You have to reference the Word library and play with an Word.Application object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Ooops, this belongs with another post. As PH mentions, yopu need to make sure you have all your references in order.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top