Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Two functions of the same name in seperate xla's

I am trying to find out what takes precedence if you have two
different function with the same name that live in different xla's/
xll's.

From the testing I have done, the following seems to happen

If I have a function called myfunc in myxla1.xla and another function
also called myfunc in myxla2.xla. If I then type "=myfunc" in a cell,
the function it uses will be which ever xla was loaded first.

If I have a function called myfunc in myxla1.xla and another function
also called myfunc in myxll.xll. If I then type "=myfunc" in a cell,
it always uses the function in myxll.xll, regardless of which order
the xla and xll were loaded.

Although I have done this testing, I would like some concrete proof of
what should happen in these conditions, can anyone please help?

Before anyone says, I know it is far from ideal to have two different
functions with the same name available at the same time but without
going into the detail, my company has ended up in this situation where
my company bought over another company and both have there own menus,
one being and xla and the other an xll.

Thanks in advance for any help you can give.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Two functions of the same name in seperate xla's

On Feb 12, 5:17*pm, wrote:
I am trying to find out what takes precedence if you have two
different function with the same name that live in different xla's/
xll's.

From the testing I have done, the following seems to happen

If I have a function called myfunc in myxla1.xla and another function
also called myfunc in myxla2.xla. If I then type "=myfunc" in a cell,
the function it uses will be which ever xla was loaded first.

If I have a function called myfunc in myxla1.xla and another function
also called myfunc in myxll.xll. If I then type "=myfunc" in a cell,
it always uses the function in myxll.xll, regardless of which order
the xla and xll were loaded.

Although I have done this testing, I would like some concrete proof of
what should happen in these conditions, can anyone please help?

Before anyone says, I know it is far from ideal to have two different
functions with the same name available at the same time but without
going into the detail, my company has ended up in this situation where
my company bought over another company and both have there own menus,
one being and xla and the other an xll.

Thanks in advance for any help you can give.


Precedence depends on what defined (allocated) first.
xll probably set as linked object (or, defined on higher level).
You can create you own library, set the link on top of the libraries
list (in VBA Editor), and get precedence over all later definitions.
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
location for XLA's that I can easily get to Maury Markowitz[_2_] Excel Programming 7 January 15th 09 03:25 PM
.XLA's Code Not Available? PeteCresswell[_2_] Excel Programming 2 May 30th 08 03:22 PM
I want to cylce through all the open .xla's as well as the .xls' pinkfloydfan Excel Programming 8 April 2nd 07 11:41 AM
Why do functions not allow commas to seperate arguments JohanS Excel Worksheet Functions 5 May 17th 06 03:56 PM
Saving variables in XLA's Paul Excel Programming 2 July 9th 04 07:25 PM


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