User Defined function error?

Anonymous
2020-01-29T17:32:18+00:00

Hello,

We are getting the following message when opening on of our spread sheets.  "The following user-defined functions, created in an older version of Excel, have the same name as built-in Excel functions.  When these function names are used in a formula, the new built-in function will be used, which may cause different results.  Then it list a function named "Function" and one named "Sort".  I searched through the entire set of VBA project modules and there is no such functions defined in our file.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2020-02-01T10:17:46+00:00

    I think I've found the problem where Excel thinks that a UDF Sort is called (see text in bold):

    <v:textbox style='mso-direction-alt:auto' o:singleclick="f">

      <div style='text-align:center'><font face="Arial" size="200" color="auto">Sort Standards</font></div>

      </v:textbox>

      <x:ClientData ObjectType="Button">

        <x:Anchor>

          1, 7, 4, 24, 2, 34, 4, 45</x:Anchor>

          <x:PrintObject>False</x:PrintObject>

            <x:AutoFill>False</x:AutoFill>

    <x:FmlaMacro>[0]!_xludf.Sort</x:FmlaMacro>

                <x:TextHAlign>Center</x:TextHAlign>

                  <x:TextVAlign>Center</x:TextVAlign>

                  </x:ClientData>

    Please follow this steps:

    Make a backup copy of the file

    Open Excel

    File \ Open \ Browse \ Select the file \ Press the SHIFT key and hold it down \ Click Open

    Wait till the file is opened \ Release the SHIFT key

    Press Alt-F11 to open the VBA Editor

    Go into module PI_Stds and search for Sort (it's the second sub from the bottom)

    Rename Sub Sort() to Sub MySort()

    Close the VBA Editor

    Go into sheet "Standard Sheet Index"

    Right-click the "Sort Standards" button (within cell B5) and choose "Assign macro"

    Select "MySort" and click Ok

    Select cell A1

    Save the file

    Close and Reopen Excel

    Does this fix the issue?

    Andreas.

    2 people found this answer helpful.
    0 comments No comments

22 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Lz._ 38,106 Reputation points Volunteer Moderator
    2020-02-01T10:15:16+00:00

    Apart from a Sub Sort I did not find anything. Just in case I renamed it > Saved > Reopened => Still got the warning. Then saved the file as .XLSM => No more warning. That's all I can say I'm afraid

    @Andreas

    Thanks for your previous reply (I'm aware of you add-in even if I don't use it)

    When you use 365 and call a SORT function, 365 stores it in a special way (inside the XML data). So when you open such a file in a previous version you get a***_xlfn.***in front of the formula.

    I was aware of the _xlfn prefix and what it means but did not know - and not sure I understand - the "storage" in the XML (that doesn't matter for now)

    Anyway, thanks again and I'll keep an eye on that thread in case you (or somewhere else) find the root cause of the issue

    0 comments No comments
  4. Lz._ 38,106 Reputation points Volunteer Moderator
    2020-02-01T11:37:35+00:00

    Mr Killer :)

    I thought about that after your reply re. XML but was lazy enough - and TBH relying on you - to reinstall some tools I haven't used for a while. May I know which tool you used?

    0 comments No comments