Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Reload Typelibrary? .Remove() & .AddFromFile() fails

Hi,

In Excel VBA.... when I Remove() a reference to a typelibrary,
update the typelibrary with new IDispatch methods, then add
the new library back using AddFromFile(), the Intellisense
doesn't update. It is as though Excel VBA hides the reference
on Remove(), but caches the original library, then re-associates
the cache with the workbook on AddFromFile().

If I open a manually associate the new typelibrary with another
workbook (Tools-Refs-Add) then the new workbook obtains the
new Intellisense.

Does anyone have any suggestions or experience on forcing
Excel VBA references / Intellisence to reload?

Thanks for any ideas,
Dunstan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Reload Typelibrary? .Remove() & .AddFromFile() fails

Dunstan,

Does recompiling the VBA project help? You can programmatically
recompile the active VBProject with

Application.VBE.CommandBars.FindControl(ID:=578).E xecute


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Dunstan" wrote in message
om...
Hi,

In Excel VBA.... when I Remove() a reference to a typelibrary,
update the typelibrary with new IDispatch methods, then add
the new library back using AddFromFile(), the Intellisense
doesn't update. It is as though Excel VBA hides the reference
on Remove(), but caches the original library, then

re-associates
the cache with the workbook on AddFromFile().

If I open a manually associate the new typelibrary with another
workbook (Tools-Refs-Add) then the new workbook obtains the
new Intellisense.

Does anyone have any suggestions or experience on forcing
Excel VBA references / Intellisence to reload?

Thanks for any ideas,
Dunstan



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
Excel crash reload close 302blue_eyes Excel Discussion (Misc queries) 5 April 10th 08 01:44 PM
Reload Excel donbowyer Excel Discussion (Misc queries) 2 December 30th 07 09:48 AM
How to reload Excel-- no longer have the cd program? Chris Excel Discussion (Misc queries) 3 July 9th 06 07:54 PM
How do I force a reload of the workbook? Bill Le May New Users to Excel 1 March 25th 05 12:56 AM
my system crashed & i had to reload xp, now I cant get my office . rob Setting up and Configuration of Excel 4 March 16th 05 08:31 PM


All times are GMT +1. The time now is 10:57 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"