Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default TYPE Library issues.

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default TYPE Library issues.

Set a reference to Word.

--
Jim
"shishi" wrote in message
ups.com...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set a Reference to a Type Library Glen Mettler[_4_] Excel Programming 0 February 9th 05 03:27 PM
HELP:old format or invalid type library Iliopoulos Dimitris Excel Programming 0 June 2nd 04 06:01 PM
MISSING: shappmgrp 1.0 Type Library Gary Bartlett Excel Programming 4 November 29th 03 05:36 PM
MISSING:shappmgrp 1.0 Type Library Gary Bartlett Excel Programming 3 November 29th 03 05:36 PM
mail message 1.0 Type library susie Excel Programming 0 July 21st 03 07:52 PM


All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"