Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Reference Help, please

I created a dll with most of the code to run my excel application.
When you open the workbook, the first line adds a reference to the dll
programmatically:
ThisWorkbook.VBProject.References.AddFromFile ("C:\UDACO2004.dll")

This is easy. However, I have declared a public variable in another
module like this:
Public UDADLL As New UDACO2004.Estimating

Up until today, the workbook opened fine, added the reference, and
then proceeded to call the library functions. But today I get a
compile error: "user-defined type not defined", so I can't add the
reference because VBA tries to compile the declaration of that object
(which it didn't do before)

I know VBA compiles as needed at runtime, but is there any way to
ensure that a particulart module doesn't get compiled when you open a
workbook???

(I could just have the dll as a refernce when it ships, but it would
make updates much more difficult. If able to add a reference
everytime the workbook opens, the user would always be using the
latest version of the dll)
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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM
Row reference increment but preserve column reference Pwanda Excel Worksheet Functions 1 April 28th 05 01:12 PM


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

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"