+ Reply to Thread
Results 1 to 9 of 9

UDF errors when workbook is opened from a network server

  1. #1
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    UDF errors when workbook is opened from a network server

    Hi,
    I have a client who has been using an old .xls workbook that contains several UDF functions. They've used this successfully on a remote server without problems since I believe 2003 (no, don't ask why they haven't moved to a later Excel version since then!)

    They've recently changed to a new "Net Docs" server (I'm not familiar with that name and unfortunately the user is not a teccy and at the moment can't give me any more information, nor indeed whether as part of the server change they've also moved to 365 or some other environment)

    I'm told that when they now open the workbook from the Net Docs server they are getting #NAME? errors in the cells that contain UDFs.
    I too see those errors when I open the file from my local hard drive, but as soon as I click the "Enable All Macros", warning during the opening process they disappear.

    Can anyone offer any thoughts on what might be causing the UDFs failing to run when opening the workbook from a new server.

    Usual TIA.
    Last edited by Richard Buttrey; 04-19-2020 at 08:28 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: UDF errors when workbook is opened from a network server

    Well, when you move to a new server the network engineer tends to review user policies, let him/her check if the macro restriction is set to avoid executing macros.
    That probably explains the issue and I have encountered that quite often
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: UDF errors when workbook is opened from a network server

    Thanks,

    I'll get the client's teccies to check that out.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: UDF errors when workbook is opened from a network server

    Let me know how it goes, am curious to hear if my theory could be correct

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: UDF errors when workbook is opened from a network server

    as part of the server change they've also moved to 365
    I had a similar problem using Excel 2003 UDFs in a .xls file in Excel 2010. There was nothing wrong with the Macros, it was Excel 2010 did not want to recognize them.

    I would try the following (doing the easiest first) as I don't remember exactly what I did to correct the problem.
    a. Export and delete the Modules that contain the UDFs. Close the file. Open the File. Import the Modules that were exported.
    b. Recreate all the cells in the Spreadsheet that use the UDFs.
    c. Delete the Sheets and recreate them.
    d. A combination of the above.

    I think it took me two months before I found the solution.

    Good luck.

    Lewis

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: UDF errors when workbook is opened from a network server

    Quote Originally Posted by Keebellah View Post
    Let me know how it goes, am curious to hear if my theory could be correct
    Thanks for the continued interest.

    On further discussion it turns out that the client was essentially expecting the workbook to open without the need to accept the 'Enable macros warning'query. The question of the #NAME errors was of seondary importance.

    Unfortunately after I'd talked the client through the whole subect of trusted workbooks and tusted locations and explained why such checks are important they decided on balance not to get IT involved and have simply accepted they will have to choose to enable macros when a workbook is first opened. As it happens the UDFs were unnecessary since there are perfectly straightforward standard excel functions that achieve the same aim - which I changed so that they don't see a worrying #NAME on opening.

    So I'm no nearer understanding why the client claims the workbook opened without prompts on the old server but not on the new. Unless of course the old server did have the files in a trusted location of which the client was unaware.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: UDF errors when workbook is opened from a network server

    Thanks Lewis,

    Interesting suggestion. Maybe changing straight from 2003 to Office 365 is encountering the same problem you found in as far as the UDF #NAME results are concerned. When the client has had time to catch his breath and absorb the explanations I gave and if I think I can talk him through the process you suggest (or get his permission for me to do it remotely) then I may well attempt that.

    I'll let you know if anything transpires and thanks again for the interest.

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: UDF errors when workbook is opened from a network server

    I ran into issues too and when I compared the Trust settings the default was to not allow any macros and not show notifications, the way it was built was the other way around than what was 'normal' in the older versions.

    What also happened with Excel's transition from 2003 to 2007 and newer versions is that the default settings for macro's was modified.
    Also the way Excel was built changed, it was no longer one file but a compressed zip file which opens on-the-fly. You can check this by either opening it with WinZip or similar aor just add the .zip extension after xlsm or xlst and you'll see that it's all xml code in the background.

    The security level was 'stepped-up' and does not (always) allow the user to change these unless the rights policy is set (on network shares)

    I understand that 'older' version users don't want the hassle but if you want to drive a car with extended (new) options, you'll have to go along with it.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: UDF errors when workbook is opened from a network server

    Quote Originally Posted by Keebellah View Post
    I ran into issues too and when I compared the Trust settings the default was to not allow any macros and not show notifications, the way it was built was the other way around than what was 'normal' in the older versions.
    .......
    Thanks Hans,

    I'll discuss this with the client and see if they're willing to try this out. If they do I'll keep you posted.

+ 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. Code to force Server Document Panel to open/display when a Workbook is opened?
    By Nola111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2014, 01:20 PM
  2. Use a macro to extract cell data from opened workbook to new opened workbook
    By BrianTFC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2014, 01:35 PM
  3. [SOLVED] Checking if another workbook is currently opened by another user on a network
    By ianpwilliams in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-05-2013, 11:24 AM
  4. Excel 2007 shows #REF! errors when workbook is opened
    By aaronsher in forum Excel General
    Replies: 11
    Last Post: 01-24-2011, 12:05 PM
  5. Security feature if opened outside the network
    By MichelleW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2009, 05:31 PM
  6. file opened twice on network
    By stevenmorrison in forum Excel General
    Replies: 1
    Last Post: 10-25-2005, 11:05 AM
  7. [SOLVED] error when I save workbook to network server in Excel 2003
    By khaled in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2005, 09:05 AM

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