+ Reply to Thread
Results 1 to 6 of 6

Create & Use a UDF Without a Workbook Reference

Hybrid View

sfrehling Create & Use a UDF Without a... 02-15-2017, 11:04 AM
MrShorty Re: Create & Use a UDF... 02-15-2017, 11:18 AM
sfrehling Re: Create & Use a UDF... 02-15-2017, 01:30 PM
xlnitwit Re: Create & Use a UDF... 02-15-2017, 03:22 PM
sfrehling Re: Create & Use a UDF... 02-15-2017, 05:18 PM
MrShorty Re: Create & Use a UDF... 02-15-2017, 01:40 PM
  1. #1
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Create & Use a UDF Without a Workbook Reference

    Quote Originally Posted by sfrehling View Post
    4) I closed Excel and opened one of the workbooks that uses MyUDF. Excel asked if I wanted to Update the links to other sources. I clicked Update. It said I had one or more links that couldn't be updated. I clicked Continue. I looked at one of the references to MyUDF. It was fully qualified with the name of the original xlam file. I edited the formula by deleting the file qualification. It still showed a #Name? error. I tried to fully qualify the UDF with the path to my xlam file. Excel accepted the new formula, dropped the path info and left only the name of the xlam file
    Hi,

    First, I suggest that you ensure the UDF is not stored in a module with the same name (the name of the workbook is not relevant).

    If that is already the case, then I suggest at this stage you replace all the calls to your UDF with some static text. In other words replace
    ='c:\the path to your add-in\add-in name.xlam'!function_Name(...)
    with for example
    ||function_Name(...)
    Doing this with the Find/Replace dialog shold be simple. Then save and close the file.

    Now reopen the file and replace the double pipe characters with an = symbol. Hopefully that will rectify your problem.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  2. #2
    Registered User
    Join Date
    02-15-2017
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Home & Office 2010
    Posts
    3

    Re: Create & Use a UDF Without a Workbook Reference

    Again, thanks for your quick and thorough help. My module name is different than my function name, so no problem there.

    I appreciate your suggestion for getting past the qualified function references. With more than 50 workbooks containing references, that's a bit of a pain, but then this whole thing has been a pain. Since last looking at your response, I have discovered that I can open each workbook, click Edit Links when prompted, select the UDF workbook, click Change Source, browse to and select my xlam file, click Update Values, and save the workbook. That too eliminates the qualified function references. Fingers crossed this problem doesn't come back again.

    There seems to be no doubt that Excel or some other part of Windows is storing some value that keeps it from automatically picking up the most recent version each time. Who knows where that might be or how to overcome it (if that's even possible).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Locked formula changes reference when rows added to reference sheet in same workbook
    By macrorookie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2014, 04:08 PM
  2. Trying to create a cross reference sheet within a workbook
    By electromech in forum Excel General
    Replies: 5
    Last Post: 02-13-2014, 08:59 PM
  3. [SOLVED] Create new workbook, then REFERENCE it, Excel 2013
    By rbrian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2013, 09:09 AM
  4. Replies: 0
    Last Post: 09-23-2013, 05:59 PM
  5. [SOLVED] copy active sheet, create new workbook, name new workbook based on cell reference
    By jm0392 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-20-2012, 07:12 PM
  6. Replies: 0
    Last Post: 12-09-2008, 06:13 PM
  7. Create a workbook reference
    By nicolachen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2007, 05:09 PM
  8. Replies: 0
    Last Post: 08-04-2005, 11:05 AM

Tags for this Thread

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