+ Reply to Thread
Results 1 to 9 of 9

UDF does not work on other computers even when appropriate add-in is installed

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    UDF does not work on other computers even when appropriate add-in is installed

    I have coded and tested an add-in for excel and it works well for my particular application. Using the user defined function in the add-in, I made a template file of sorts that you take and fill in the current data and save as a new name. Several other people in my office were interested in this functionality, so I saved the template and add-in on a network drive that is accessible by everyone in the office. The problem is that even when the add-in is installed on a co-worker's computer if they open a file that I have filled in with data, all of the places that use a UDF from the add-in show #NAME? errors. The document also wants to "update links" and if you follow the link it is trying to access the add-in that is installed on my local machine. The only thing that I can think of that would be a complication is that I am using Office 2007 and some of the other people have Office 2010.
    Any ideas?
    Thanks!
    Last edited by ATufts; 12-09-2011 at 06:16 PM.

  2. #2
    Registered User
    Join Date
    12-06-2011
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: UDF does not work on other computers even when appropriate add-in is installed

    Bump, no response. . .

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: UDF does not work on other computers even when appropriate add-in is installed

    Is it possible to attach a file with dummy data.

  4. #4
    Registered User
    Join Date
    12-06-2011
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: UDF does not work on other computers even when appropriate add-in is installed

    OK, two files attached. Excel sheet is with sample data, txt file has the add-in module that should perform the desired functions in G3 through G7. Apologies for the text file, couldn't figure out how to get Excel to export the module to anything other than a .bas file on short notice, and didn't think you needed all of the functions in the UDF.
    Edit - Stupid me, the problem is with the add-in so I need to attach the add-in not a text file of the code module. I'll re-attach the correct file when I get access tomorrow.
    Attached Files Attached Files
    Last edited by ATufts; 12-08-2011 at 09:07 PM. Reason: Attached wrong file

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: UDF does not work on other computers even when appropriate add-in is installed

    I feel the loaded file does not contain any UDF.

  6. #6
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: UDF does not work on other computers even when appropriate add-in is installed

    It's a very simple solution:

    - you can load your workbook and change the link to your local addin into the add-in on the networkserver: Menubar/edit/link...change link
    - save the adapted workbook and put that on the server (or distribute among your colleagues)
    - everyone who will download a copy of it will have the correct path to the addin on the server.



  7. #7
    Registered User
    Join Date
    12-06-2011
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: UDF does not work on other computers even when appropriate add-in is installed

    snb - that's a great idea, don't know why I didn't think of it. Unfortunately, tried to implement and I still get the #NAME? errors for the custom function unless you actually open the source add-in. Is this normal behavior? Now I wasn't able to find the Menubar/edit/link...change link, I was just opening the file and it says "file has linked data, update links?" Select yes, essentially says "Can't access file. Update source?" then it allows met to change or update the source file for the add-in. I'll try again in a different way and see what I can get. Also, for some reason, the file uploader doesn't recognize the excel add-in that I am trying to upload, so we are back to a txt file. Any suggestions?
    Attached Files Attached Files

  8. #8
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: UDF does not work on other computers even when appropriate add-in is installed

    Use this macro.
    Replace "E:\OF\adressen 002.xls" by the fullname of the addin on the networkserver.

    Please Login or Register  to view this content.
    Last edited by snb; 12-09-2011 at 05:19 PM.

  9. #9
    Registered User
    Join Date
    12-06-2011
    Location
    Arkansas, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: UDF does not work on other computers even when appropriate add-in is installed

    snb - tried the macro code, unfortunately still being stubborn.
    Don't know if it is the specific machines here or just me being stupid with something. Either is a possibility. I think that what I am going to do is just have the individuals download the template to their local machines and then change the link to the appropriate file on their local machine. With everything showing up as #NAME? errors it was just confusing to some of the people.
    Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1