TYPE Library issues.

S

shishi

Hi ,

I have started on a project to generate ms-word documents from excel
sheet. The vba code starts something like below.

Dim oWrd As Word.Application
Dim oDoc As Word.Document
Set oWrd = New Word.Application

I am getting an error from the first line. The error is "complie error:
User-Defined type not defined". I checked Tools->References and found
that the following are already checked.
1. Visual Basic for applications
2. Microsoft Excel 9.0 Object Library
3. OLE Automation
4. Microsoft Office 9.0 Object Library
etc.

What could be that I am doing wrong? Please help. Thanks in advance
for your suggestion.

shishi
 

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