Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Reference to a library

Hello,
I have a file that has a reference to the Microsoft Word 11.0 Library
in VBA code and everytime I open my file, it says it can't find the
library and I have to manually select it everytime. How can I change
this?
Thanks, Nicolas

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Reference to a library

Word is one of those references that you can get away with not having to
create. Instead of the code you have try something like this

Dim objWord as object

Set objWord = CreateObject("word.application")

objWord is now a word object that you can probably fit into youir code...
--
HTH...

Jim Thomlinson


"Nicolas Roth" wrote:

Hello,
I have a file that has a reference to the Microsoft Word 11.0 Library
in VBA code and everytime I open my file, it says it can't find the
library and I have to manually select it everytime. How can I change
this?
Thanks, Nicolas


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
Type Library Reference Mark[_63_] Excel Programming 1 April 10th 06 03:46 AM
VBA Reference Library ADO 2.7 Glazunov Excel Programming 0 May 23rd 05 06:36 PM
Add-ins and Reference library Glen Mettler[_4_] Excel Programming 1 December 5th 04 11:41 AM
Reference Library - Missing Library in a lower version. luvgreen Excel Programming 1 October 7th 04 02:08 AM
Reference Library Kevin Wickersheim Excel Programming 2 May 5th 04 08:18 PM


All times are GMT +1. The time now is 06:55 AM.

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

About Us

"It's about Microsoft Excel"