Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default Trying To Open Second Copy Of a .XLA?

Got a custom .XLA called "Function.xla" (Lousy name... but I didn't choose
it...)

It contains code to compute rolling rates of return.

It's been working fine for all users for years and years.

Now one user is having a problem.

The problem presents as the "ROR" calculation showing up as a fully-qualified
path and an error message that pops when they try to invoke the computation. The
error message is to the effect that there's already a copy of Function.xla open
and Excel is trying to open another copy.

Same thing's happening in an MS Access app on that user's PC - that is creating
Excel spreadsheets. I coded around the error in the MS Access app by just
doing a Resume Next if/when that error popped.


Anybody got an idea what the root cause is?

I'm thinking something to do with multiple copies of the .XLA on this user's
computer coupled with some Excel parm that points to a default folder for
opening such things.... Plus, maybe, some explicit reference in the Excel
spreadsheets to a different folder.
--
PeteCresswell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Trying To Open Second Copy Of a .XLA?

Does this addin only have UDFs?

If yes, it sounds like there's a mismatch between the location in the formulas
and where the addin is loaded (tools|addins -- or the xlstart folder).

=if(a1=123,'C:\My Documents\excel\function.xla'!ror(something),"")

I'd keep one addin in a single location.

Then you have a couple of choices.

#1. move the addin to the place that the the formula expects.

#2. Fix the formulas
Edit|Links|Change source.

======
This can be a problem when sharing an addin with people and letting them put the
addin in any location--and then sharing a workbook that relies on a function in
that addin.

If you save your addin in one location, the formulas will still try to find them
in that location. The fix I use is to either store the addin in a common
network location and use the UNC path--not a mapped drive where the letter can
change.

Or dedicate a common location and force(?) people to use that location:
C:\MyAddins

And then the formulas will always point to C:\myaddins\function.xla!ror().



"(PeteCresswell)" wrote:

Got a custom .XLA called "Function.xla" (Lousy name... but I didn't choose
it...)

It contains code to compute rolling rates of return.

It's been working fine for all users for years and years.

Now one user is having a problem.

The problem presents as the "ROR" calculation showing up as a fully-qualified
path and an error message that pops when they try to invoke the computation. The
error message is to the effect that there's already a copy of Function.xla open
and Excel is trying to open another copy.

Same thing's happening in an MS Access app on that user's PC - that is creating
Excel spreadsheets. I coded around the error in the MS Access app by just
doing a Resume Next if/when that error popped.

Anybody got an idea what the root cause is?

I'm thinking something to do with multiple copies of the .XLA on this user's
computer coupled with some Excel parm that points to a default folder for
opening such things.... Plus, maybe, some explicit reference in the Excel
spreadsheets to a different folder.
--
PeteCresswell


--

Dave Peterson
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
Open WB, copy each sh. & paste into other WB, regardless of tab na Driftwood Excel Discussion (Misc queries) 0 January 29th 10 02:06 PM
copy paste to first first open row JSnow Excel Worksheet Functions 2 March 6th 09 02:35 PM
Open a read-only copy grok Excel Discussion (Misc queries) 2 October 25th 06 08:04 PM
select open webpage, copy information to open worksheet Kevin Excel Programming 2 September 5th 06 05:10 AM
File does not open/copy Ken Goodwin Excel Programming 1 August 6th 03 02:41 AM


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