+ Reply to Thread
Results 1 to 4 of 4

Force UDF in new workbook to refresh

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    8

    Force UDF in new workbook to refresh

    Hi
    Using VBA I am opening an workbook which contains 3rd party UDF's to extract data for my totals. However the UDF no longer calculates, I cannot change it to volitile.
    forcing the range, sheet, workbook and application to calculate does not fix the issue.
    I have tried opening the file with UpdateLinks:=3 and this also is not forcing the refresh.

    Any ideas where to start?

    thanks in advance for the scathing comments about my stupidity

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,990

    Re: Force UDF in new workbook to refresh

    Can you try double-clicking the cell containing the formula (or select it then hit F2), then hit ENTER? That should force the function to recalculate. How many cells these this UDF? What is the formula?

    Changing it to Volatile might not be a great idea anyway, but why can't you change it--no access to the code? What does it do?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Force UDF in new workbook to refresh

    There are over 100 cells containing the UDF formulas which come from a 3rd party financial add-in, I can't mess with that.
    When the workbook is opened via VBA the UDF results in #NAME? any attempt I have made to recalculate through VBA fails.

    I have tried inserting a wait command after the calculate, and also limiting the calculate to the range, sheet, workbook but all to no avail
    Here is a sample of the code which does open the file correctly.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-01-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Force UDF in new workbook to refresh

    Ok further investigation has narrowed this down to being a Thomson Reuter dll named 'EikonOfficeShim.dll' several other threads I have found indicate using app.run but I can't see a reference for dll's

+ 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. Refresh all queries on workbook open, when finished print to pdf then close workbook
    By Bree Harvey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 04:53 AM
  2. [SOLVED] How to force a workbook to open ONLY through another workbook?
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-25-2013, 01:46 PM
  3. Force Sheet to refresh every XX minutes
    By Grimace in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2013, 12:36 AM
  4. Replies: 2
    Last Post: 06-21-2005, 01:05 PM
  5. [SOLVED] Force refresh of custom functions
    By donesquire in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2005, 03:06 PM

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