+ Reply to Thread
Results 1 to 5 of 5

VBA custom function calls .net function and fails. Help?

  1. #1
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    VBA custom function calls .net function and fails. Help?

    Hi all:

    The following VBA function works in Windows Excel but gives a #Value! error in Mac Excel. My spreadsheet's attached, very simple.

    Please Login or Register  to view this content.
    I'm guessing this call to a .NET function is the culprit?

    Please Login or Register  to view this content.
    Can anyone tell me how to make this work, if it's possible? Do I need to do the following eg, and if so which one on this page??

    https://learn.microsoft.com/en-us/do.../install/macos

    Thanks as always for your incredible help.

    Steve
    Attached Files Attached Files
    Last edited by Steve Roth; 02-03-2025 at 04:22 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: VBA custom function calls .net function and fails. Help?

    We would very much like to help you with your query, however we recommend that you include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window.

    I've add it now for you.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    Re: VBA custom function calls .net function and fails. Help?

    Done. Code tags entered. Thx.

  4. #4
    Registered User
    Join Date
    11-14-2010
    Location
    EXCELGAARD
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: VBA custom function calls .net function and fails. Help?

    Yep, it is a Mac issue - the library does not exist on a Mac - everything works fine in Windows.

    You gotta find another way to do it on Mac - sorry, can't help you, since I'm on Linux/Windows.

  5. #5
    Registered User
    Join Date
    12-08-2012
    Location
    United States
    MS-Off Ver
    Various on different jobs
    Posts
    15

    Re: VBA custom function calls .net function and fails. Help?

    Thanks to all for considering this. FYI I found a (Google Sheets) solution. Enter a column of email addresses, get hashes for each. Apparently Google has a script library for this.

    Courtesy of @pgSystemTester over at:

    https://stackoverflow.com/questions/...-vba-or-macros

    Here's the Google sheet:

    https://docs.google.com/spreadsheets...&fvid=67067640

    Thanks again,

    Steve

+ 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] Macro calls unneeded function.
    By JapanDave in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2015, 12:38 AM
  2. API Calls to replace SendKeys{TAB} function
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-09-2015, 09:50 AM
  3. [SOLVED] Function that calls other functions
    By chipp300 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2014, 08:03 PM
  4. reset function calls
    By kbka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2014, 09:00 AM
  5. Custom Function Fails When Row Hidden
    By tenjin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2013, 06:41 AM
  6. Using ODBC function calls
    By Dave in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2006, 10:40 AM
  7. VBA: How to pass arrays in Function Calls?
    By Mac Lingo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2005, 04:09 PM

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