Broken References

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to be able to fix any broken references via code. However, when I
intentionally break a reference I can't run my code to remove the reference
because I get a compile error.

In my main module I have an auto_open subroutine which calls my routine to
remove any broken references (then will run another routine to add the
correct reference). However, when I run auto_open the first thing that
happens is I get an error "user-defined type not defined" saying my public
variable "Public gWeather As New Weather" (references the Weather dll)
I was hoping by calling the remove broken references subroutine first I
could fix any problems with broken references but obviously not.

So this leads to the question, how can you remove broken references (via
code) if you code never compiles and therefore, you are not able to run your
subroutine?

Thanks for any advice you can provide.

Burnsie
 
Hi,

I want to be able to fix any broken references via code. However, when I
intentionally break a reference I can't run my code to remove the reference
because I get a compile error.

In my main module I have an auto_open subroutine which calls my routine to
remove any broken references (then will run another routine to add the
correct reference). However, when I run auto_open the first thing that
happens is I get an error "user-defined type not defined" saying my public
variable "Public gWeather As New Weather" (references the Weather dll)
I was hoping by calling the remove broken references subroutine first I
could fix any problems with broken references but obviously not.

So this leads to the question, how can you remove broken references (via
code) if you code never compiles and therefore, you are not able to run your
subroutine?

Never tried this, but it seems that you'd have to write code in Project A to
fix broken references in Project B.
 
Same thought I had Steve, maybe even build a COM that loads at start up to
do the lifting for the add in.



Austin Myers
MS PowerPoint MVP Team

Provider of PFCMedia, PFCPro, PFCExpress
http://www.pfcmedia.com
 
Back
Top