Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

Object Library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GoTTi - 12 Sep 2006 11:00 GMT
I have written a macro in Excel 2002/XP which uses different MS Object
Libraries (Excel, Office & PowerPoint) and it works fine.
When I save the file in Excel 2003 the references get changed automatically
to version 11 and the file works but when I open the file in Excel 2002
again the Object Library for PowerPoint stays on version 11 all others
swiches back to version 10. This produces errors (Missing Object Library).

Does anyone have a clue why this Object Library doesn't swich back?

Thanks in advance
GoTTi
Jim Thomlinson - 12 Sep 2006 17:13 GMT
You are better off to use late binding. (Bind to the library at run time, not
at design time). Remove the references and use code similar to this

Dim appExcel As Object
Dim appWord As Object

Set appExcel = CreateObject("Excel.Application")
Set appWord = CreateObject("Word.Application")

appExcel.Quit
appWord.Quit
Set appExcel = Nothing
Set appWord = Nothing
Signature

HTH...

Jim Thomlinson

> I have written a macro in Excel 2002/XP which uses different MS Object
> Libraries (Excel, Office & PowerPoint) and it works fine.
[quoted text clipped - 7 lines]
> Thanks in advance
> GoTTi
GoTTi - 13 Sep 2006 07:19 GMT
Thank you, Jim!

I think this did the trick!

Regards,
GoTTi
> You are better off to use late binding. (Bind to the library at run time,
> not
[quoted text clipped - 24 lines]
>> Thanks in advance
>> GoTTi

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.