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: 2
Default Links between VBComponents and Sheets 3

I apologize for inadequately explaining my problem.

We have several nearly identical Excel workbooks that
make reference, i.e., ActiveVBProject.References.Add, to
the VBA in a particular Addin. The code in the Addin
assumes the existence of a VBComponent, in the client
Excel workbook, associated with a particular sheet.

For some reason, i.e., unexplained error, in one of these
workbooks, the Properties of the specified VBComponent
have been set to Nothing. This is observed through the
Locals window. As a result, none of the Controls on the
associated sheet function; they use the referenced Addin
code that makes reference back to the corrupted component.

An attempt was made to delete the sheet. The worksheet
was removed, from the Sheets collection, but the
Component remained as part of the VBProject. Also, there
is no way to rename or delete the corrupted component.
It looks like Excel treats it as the ThisWorkbook
component.

We simply want to remove the currupted component, or at
least give it a useless name, and copy a working version
of the sheet, along with its VBComponent, to the
workbook. The referenced VBA Addin code would work
correctly.

What should be done? Thanks again.
 
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
How do I update links from .xls sheets to .xlms sheets June Excel Worksheet Functions 2 April 21st 10 08:57 PM
Links between Sheets Warren Easton Excel Discussion (Misc queries) 12 December 16th 08 02:32 PM
Links between sheets Jack Excel Discussion (Misc queries) 2 June 21st 05 11:17 PM
Links between VBComponents and Sheets 2 Paul Excel Programming 1 August 5th 04 04:59 AM
Links between VBcomponents and Sheets Bernie Deitrick Excel Programming 1 August 4th 04 07:19 PM


All times are GMT +1. The time now is 07:21 AM.

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"