PC Review


Reply
Thread Tools Rate Thread

Custom function in an add-in problem!

 
 
Alan Ibbotson
Guest
Posts: n/a
 
      27th Sep 2005
The add-in defines a custom function that returns a catalog price. The
formula in the cell is "=CAT05("1234", Price). When the user that created
the file opens the file, all is well. When another user opens the file we
have problems. Even though all of our users have the same add-in, the file
worksheet will try to reference the creators add-in, i.e. in the non
creators display the cell say "='C:\Documents and Settings\User\Application
Data\Microsoft\AddIns\CustomTools.xla'!CAT05("1234", Price)", where "User"
is the file creator. So the cell returns the "#NAME?" error.

I have been using find and replace to delete the path of the originator and
just display "=CAT05("1234", Price)"[ That gets it to work correctly]. So my
question is what do I need to do, either when the file is created or when it
is reopened, so the path is not inserted into the formula?


 
Reply With Quote
 
 
 
 
Harlan Grove
Guest
Posts: n/a
 
      28th Sep 2005
Alan Ibbotson wrote...
>The add-in defines a custom function that returns a catalog price. The
>formula in the cell is "=CAT05("1234", Price). When the user that created
>the file opens the file, all is well. When another user opens the file we
>have problems. Even though all of our users have the same add-in, the file
>worksheet will try to reference the creators add-in, i.e. in the non
>creators display the cell say "='C:\Documents and Settings\User\Application
>Data\Microsoft\AddIns\CustomTools.xla'!CAT05("1234", Price)", where "User"
>is the file creator. So the cell returns the "#NAME?" error.
>
>I have been using find and replace to delete the path of the originator and
>just display "=CAT05("1234", Price)"[ That gets it to work correctly]. So my
>question is what do I need to do, either when the file is created or when it
>is reopened, so the path is not inserted into the formula?


If this add-in is meant to be used by multiple users, then put it in a
shared locations that would always have the same pathname, e.g., put it
into

C:\Documents and Settings\All Users\Documents

or some reasonable *common* subdirectory.

 
Reply With Quote
 
Alan Ibbotson
Guest
Posts: n/a
 
      28th Sep 2005
I have tried this in the past but when installing the add-in you are
prompted to copy the add-in to the local drive in the AddIns folder. Even if
I could figure this out that would not be a complete solution. I have
several users that work in other countries and don't have access to our
server.

"Harlan Grove" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Alan Ibbotson wrote...
>>The add-in defines a custom function that returns a catalog price. The
>>formula in the cell is "=CAT05("1234", Price). When the user that created
>>the file opens the file, all is well. When another user opens the file we
>>have problems. Even though all of our users have the same add-in, the file
>>worksheet will try to reference the creators add-in, i.e. in the non
>>creators display the cell say "='C:\Documents and
>>Settings\User\Application
>>Data\Microsoft\AddIns\CustomTools.xla'!CAT05("1234", Price)", where "User"
>>is the file creator. So the cell returns the "#NAME?" error.
>>
>>I have been using find and replace to delete the path of the originator
>>and
>>just display "=CAT05("1234", Price)"[ That gets it to work correctly]. So
>>my
>>question is what do I need to do, either when the file is created or when
>>it
>>is reopened, so the path is not inserted into the formula?

>
> If this add-in is meant to be used by multiple users, then put it in a
> shared locations that would always have the same pathname, e.g., put it
> into
>
> C:\Documents and Settings\All Users\Documents
>
> or some reasonable *common* subdirectory.
>



 
Reply With Quote
 
Harlan Grove
Guest
Posts: n/a
 
      28th Sep 2005
Alan Ibbotson wrote...
>I have tried this in the past but when installing the add-in you are
>prompted to copy the add-in to the local drive in the AddIns folder. Even if
>I could figure this out that would not be a complete solution. I have
>several users that work in other countries and don't have access to our
>server.
>
>"Harlan Grove" <(E-Mail Removed)> wrote in message

....
>>C:\Documents and Settings\All Users\Documents


The drive/directory path above is *LOCAL* to *EVERY* PC running Windows
2000 or later (unless your IT department has gotten creative with
directory naming). That is, *EVERY* PC running Windows 2000 or later
will have this directory as well as

C:\Documents and Settings\<UserNameHere>

on <UserNameHere>'s PC.

If this doesn't work for you, use a common directory in the root of the
C: drive, e.g., C:\OurWonderfulAdd-Ins. Create that directory as part
of the installation process and put the add-in XLA there.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom function problem Cresta Microsoft Excel Programming 6 7th Jan 2009 10:13 AM
Custom Function #Name Problem cvolkert Microsoft Excel Programming 2 3rd Oct 2005 07:27 PM
Re: DoCmd.SetWarnings = False problem with custom function Job Microsoft Access Form Coding 0 9th Aug 2005 04:44 AM
custom function problem Carlton L Microsoft Excel Programming 2 30th Jul 2005 09:46 PM
Re: Custom Function Problem Bob Phillips Microsoft Excel Worksheet Functions 2 27th Jul 2004 06:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 PM.