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: 1
Default Add-in does not autoload on programmatic opening

Hello,

I created an add-in and put it on a network share, and specified it in
add-ins. Then I used a formula provided by the add-in in the workbook.

When I reopen the workbook in Excel 2002, it works fine.

But if I open the same workbook programmatically (which is the intended
purpose), i.e. by

set ea=createobject("excel.application")
set ed=ea.workbooks.add("...\Credit Card Order.xlt")

Excel shows a dialog: "This workbook contains links to other sources. To
update all linked information, click Yes; to keep the existing information,
click No".

If I click "yes", Excel shows error message: "this workbook contains one or
more links that cannot be resolved". If I "edit links", the status of the
link is "error: undefined or non-rectangular name". If at this point I "open
source", the problem gets fixed. If not, the workbook opens up with #NAME?
in the cells using the link; however, if at this point I open tools/add-ins,
I see that my add-in _is_ checked. If I UNcheck it, the cells immediately
get fixed, i.e. the link begins to work

If I initially have the add-in UNchecked, and open the workbook
programmatically, the same sequence happens; I open add-ins menu, check my
add-in, and then it works.

Is there a way to have the add-in automatically loaded without prompts or
errors upon the programmatic startup, same as it does on manual startup?


thanks,

Vadim Rapp
Polyscience, Inc.

 
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
Programmatic Hiding [email protected] Excel Discussion (Misc queries) 2 September 29th 07 01:13 PM
AutoLoad Custom Tool Bar Jim Carter Excel Programming 3 August 16th 04 11:32 PM
AutoLoad UserForm ? MAS Excel Programming 1 July 29th 04 07:28 PM
Autoload custom menu on Workbook Open Johann[_2_] Excel Programming 1 December 30th 03 07:55 AM


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