Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Find and set references at runtime

Dear experts,
I want to write a VBA code in Excel to connect to Autocad. It's a
simple task at design time. But if my code runs at another system with
different version of Autocad it fails.
What I need is a procedure to find all available Autocad references in
the system and set the reference to newest one.
Best regards
Reza

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find and set references at runtime

http://support.microsoft.com/?id=160647
XL97: How to Programmatically Create a Reference

shows how to create a reference

You can use late binding to work with autocad without creating a reference
(which is the usual approach recommended)

http://support.microsoft.com/default...b;EN-US;244167
INFO: Writing Automation Clients for Multiple Office Versions

http://support.microsoft.com/default...b;en-us;245115
INFO: Using Early Binding and Late Binding in Automation

http://support.microsoft.com/default...b;en-us;247579
INFO: Use DISPID Binding to Automate Office Applications Whenever Possible

http://support.microsoft.com/default...32&Product=xlw
INFO: Error or Unexpected Behavior with Office Automation When You Use Early
Binding in Visual Basic

--
Regards,
Tom Ogilvy


"rezafloyd" wrote in message
oups.com...
Dear experts,
I want to write a VBA code in Excel to connect to Autocad. It's a
simple task at design time. But if my code runs at another system with
different version of Autocad it fails.
What I need is a procedure to find all available Autocad references in
the system and set the reference to newest one.
Best regards
Reza



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
Runtime 91 error due to cells.find statement !??! [email protected] Excel Programming 6 October 26th 06 10:21 AM
Find sheet references Deeds Excel Programming 1 September 16th 05 05:54 PM
find all references to a particular cell singlgl1 Excel Discussion (Misc queries) 2 August 21st 05 02:56 AM
References and Microsoft Scripting Runtime library Tony Seiscons Excel Programming 1 September 20th 04 11:55 PM
Runtime 1004 unable to get find property of range class Eric Excel Programming 2 January 30th 04 01:06 PM


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

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

About Us

"It's about Microsoft Excel"