Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default force addins.add to change folder for an addin

Hello Excellers,

I'm trying to make an addin be auto-installing when it is opened.

The addin's "installed" property is false so it does not get opened when excel starts up.

If the addin is already installed in one folder, but is now being opened from second folder, I try to use Addins.Add with the full pathname of the new folder.

This seems to get done without error, but the folder for the addin does not actually get changed. As evidenced by closing and reopening excel, and finding that the addin is still being pointed to in the first folder.

Is there some way to force the folder change to take place?

Thanks,

Brian Murphy
Austin, Texas

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default force addins.add to change folder for an addin

you'd need to delete the registry settings - not difficult to do, but
everytime Excel closes it updates these settings. So this is quite tricky.
Run Regedit and and look in KKEY_CURRENT_USER / Software / Microsoft /
Office / 10.0 / Excel / Options

you wil see names like 'OPEN','OPEN1' ...'OPENnn' where each addin is
listed. Delete any you don't want.

Open Excel, check the add-in manager, select an add-in the go back to the
worksheet, close excel and rexamine the registry again.
We haev done considerable work on this and to "guarantee" our custom add-ins
load correctly, we clean the registry, add our components to it and then
excel is ready to open. tedious, but we run bit of VB so its fast, seemless
and painless!

Hope this helps


"Brian Murphy" wrote:

Hello Excellers,

I'm trying to make an addin be auto-installing when it is opened.

The addin's "installed" property is false so it does not get opened when excel starts up.

If the addin is already installed in one folder, but is now being opened from second folder, I try to use Addins.Add with the full pathname of the new folder.

This seems to get done without error, but the folder for the addin does not actually get changed. As evidenced by closing and reopening excel, and finding that the addin is still being pointed to in the first folder.

Is there some way to force the folder change to take place?

Thanks,

Brian Murphy
Austin, Texas


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
Addins-Slow loading of each individual Addin using Excel 2007 dplunkett Excel Discussion (Misc queries) 0 May 9th 09 07:16 AM
how can i change my default working folder to a networked folder? wizard1154 Excel Discussion (Misc queries) 4 April 18th 07 07:29 PM
Force a Readonly Workbook to save to a different folder Charlotte Howard Excel Discussion (Misc queries) 6 August 23rd 06 04:41 PM
Excel addins disappearing from addin manager Tim Richardson Excel Discussion (Misc queries) 3 July 25th 05 09:13 AM
Addins - Is it necessary to duplicate changes in both the VBAProject AND the Addin Jeff Stryer[_2_] Excel Programming 1 November 21st 04 11:15 AM


All times are GMT +1. The time now is 03:30 AM.

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"