Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Does library reference stay with the code?


In order to manipulate Word files from Excel the Word object librar
must be enabled using the Tools menu in the VB Editor. After doin
this my code works correctly. But will the Excel file still operat
correctly on another machine - will the Word object library have to b
manually enabled on every machine that uses the file

--
Peter Cornis
-----------------------------------------------------------------------
Peter Cornish's Profile: http://www.excelforum.com/member.php...fo&userid=3518
View this thread: http://www.excelforum.com/showthread.php?threadid=54949

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Does library reference stay with the code?

There can be a bit of an issue with the Word library in that it is dependant
on the version of Word. If you reference a version of word that the target
system is not using then you will come back with a missing reference. You can
get around that by not referencing the Word library and doing something like
this...

dim wrdApp as object

set wrdApp = createobject("Word.Application")

The only thing to note here is that since you have not made a direct
reference to the Word library intellisense will not work as you are creating
the code. Since I like having the intellisence I usually add the reference
while I am developing the code and then remove the reference at the end and
add the above code...
--
HTH...

Jim Thomlinson


"Peter Cornish" wrote:


In order to manipulate Word files from Excel the Word object library
must be enabled using the Tools menu in the VB Editor. After doing
this my code works correctly. But will the Excel file still operate
correctly on another machine - will the Word object library have to be
manually enabled on every machine that uses the file?


--
Peter Cornish
------------------------------------------------------------------------
Peter Cornish's Profile: http://www.excelforum.com/member.php...o&userid=35183
View this thread: http://www.excelforum.com/showthread...hreadid=549490


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
Reference to a library Nicolas Roth Excel Programming 1 April 11th 06 04:29 PM
R1C1 Reference Style won't STAY gone? khrystle Excel Discussion (Misc queries) 5 March 1st 06 10:36 PM
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


All times are GMT +1. The time now is 07:07 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"