LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
jon jon is offline
external usenet poster
 
Posts: 6
Default problems with Add-In event procedures when moving WB files between computers

We have written a complex Add-In (AI) which incorporates hidden internal
sheets and event procedures (EPs - I hope I'm using the right jargon here)
which are associated with "shapes" on the sheets.

When the user clicks on an AI-created menu entry, we create a new workbook
(WB) for him/her, by copying the internal sheets to the new WB. The result
is that, so long as the AI is still available, when the user clicks on the
shapes in their WB, EPs in the AI are triggered and do work for them.

Strangely, this even works if the AI is not installed: it seems as if the WB
knows the location of the AI file, and will auto load it even if the AI is
not explicitly installed or enabled. I'm not sure whether this is a bug or
a feature, but it is unexpected behavior.

This works fine on one computer. If you save the WB and then come back to
it later, the shapes continue to trigger the EPs correctly.

The problem occurs if you try to trade WBs with a co-worker. The names of
the EPs get corrupted on the second computer, having half of the path to the
AI from the first computer, and part from the second computer. It appears
that Excel is trying to "help" resolve these EP names when the file is
opened, but is totally screwing things up.

We've tried a variety of things to fix this, including trying to alter the
EP names at WB create time so that they look like either "macroname" or
"'addin-name.xla!'macroname", but the EP names continue to get corrupted by
the destination computer. We would fix the EP names at WB load time, only
we can't figure out how to do this (putting an EP inside the WB is not an
option, since it cannot be signed, and our customers often work at high
security levels).

I would be happy to provide more details to anyone who wants to work with me
on this.

Is there ANY way to allow users to trade WBs using this approach?

We're developing in Excel 97 and testing in 97, 2000, and 2002.

Thanks for listening.

Jon Bondy
jbondy at sover dot net


 
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
Problems Coping and moving sheets between files Excell 2007 [email protected] Excel Discussion (Misc queries) 2 November 23rd 07 04:37 PM
Event Procedures: Event on Worksheet to fire Event on another Worksheet Kathryn Excel Programming 2 April 7th 04 07:35 PM
Passing ARGUMENTS between event procedures of a USERFORM jason Excel Programming 8 November 10th 03 07:36 PM
AddIn Default Path - Moving Spreadsheed between Users/Computers John C. Liss Excel Programming 0 October 7th 03 09:08 PM
Creating Event procedures from a macro Robert Stober Excel Programming 3 September 7th 03 06:52 PM


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