![]() |
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 |
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 |
All times are GMT +1. The time now is 10:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com