Reference to Word document

T

Tha BeatMaker

Someone sent me this script:

Sub CreateNewWordDoc()
' to test this code, paste it into an Excel module
' add a reference to the Word-library
' create a new folder named C:\Foldername or edit the filnames in the
code
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Dim i As Integer

When using excel, how do i add a reference to the word-library?
 
N

Nigel

Goto the VBA editor - Alt-F11 then use Tools->References - look for
Microsoft Word 10.0 Object Library and tick the check box. The version
number of the word version installed may be different depending on your set
up.



--
Cheers
Nigel



"Tha BeatMaker" <[email protected]>
wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top