PC Review


Reply
Thread Tools Rate Thread

Determine if object libraries are available

 
 
Jay Dee
Guest
Posts: n/a
 
      18th Apr 2009
Hi

I have written some code that user the Excel 11 object library and it
works fine on machines running Microsoft office 2003 but wont run on a
machines running office 2000.

I have then re-written the code using the Excel 9 object library that
will run on a machine using office 2000 but won’t run on machines
using 2003

At the moment I have it working using a try catch statement that will
try the first block of code, if that fails because office 2003 is not
installed it will then try the next block of code.

Some how this doesn’t seem good practice.

Is there a simple way to determine if the object libraries are
available on the client machine and run the correct code accordingly
so that I can remove the try catch statements?

Thanks

Jay Dee
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office Object Libraries =?Utf-8?B?VmFuUw==?= Microsoft Excel Programming 2 23rd Nov 2004 06:51 PM
Object Libraries Alec Bowman Microsoft Excel Programming 5 26th Mar 2004 04:18 AM
Automation and object libraries Cecilia Reyes Microsoft Access External Data 6 13th Jan 2004 09:12 PM
Object Libraries JohnV Microsoft Outlook VBA Programming 1 17th Sep 2003 02:58 PM
Object libraries Lionel Fridjhon Microsoft Excel Programming 9 29th Aug 2003 01:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:51 PM.