LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Late binding to .XLA library??

In my spreadsheet I have code that references functions and classes in an
..XLA file. When a user who does not have the .XLA file available opens the
spreadsheet they see a compile error when the Workbook Open event fires
(even though the Open event itself does not call or even directly reference
any XLA resources).

This actually makes perfect sense to me ... but that does not mean I have
to like it.

Anyone know of a reliable way to prevent the compile error in this
situation?

Something comparable to late binding for functions in an XLA library would
be nice. Then I could check if the library exists before I decide whether
to make the function calls.

I have discovered that if arrange my code /just right/, I can avoid the
error by convincing VBA not to compile the modules that reference the
non-existent library -- however that is not reliable enough to release to
the users.

I am tempted to port my .XLA into a Visual Basic and compile it into an
ActiveX DLL, but I figured I would check with the group to see if anyone had
a good idea on this.

Thanks!
Lee


 
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
VB Extensibility library and "late binding" Dennis Excel Discussion (Misc queries) 0 March 30th 05 10:51 PM
Late Binding help, Please Bud Dean Excel Programming 5 September 24th 04 04:31 AM
Late Binding Todd Huttenstine[_3_] Excel Programming 3 April 30th 04 11:01 AM
VBA References - when is Office Object Library Reference set? Best practice re. Early/Late binding ... AndyB Excel Programming 5 April 22nd 04 02:11 PM
EARLY binding or LATE binding ? jason Excel Programming 6 February 26th 04 04:57 PM


All times are GMT +1. The time now is 06:47 PM.

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"