Using custom dylib on Mac with Excel

Bill Moo

New Member
Joined
Feb 15, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I built a shared x64 library (DLL) for use in Excel on Windows and wanted to use it on my Mac to save me starting a VM every time I needed it.

However, when the VBA code launches it says it cannot find the dylib. On searching the internet I have put the dylib in various locations and tried various path formats using both slash and colon delimited paths but to no avail and I am at the point of pulling out what remains of my hair! I would be grateful if someone could tell me where I need to locate this dylib and how to address it within the VBA.

At present the library resides in /Users/Bill/lib/ and I am using the same path within the VBA code but this doesn't work either!

I am running macOS Catalina v10.15.3 with Excel for Mac v16.33 (20011301) with an Office 365 Subscription.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
In case it wasn't obvious, I thought I'd add that I have built a version of the library to run on the Mac using XCode. On re-reading my post this wasn't obvious and it reads like I am trying to use the Windows DLL when in fact I'm using libServices.dylib as built by XCode via CMake.
 
Upvote 0
OK, I've made some progress on this and I have now found what appears to be the correct location for the dylib:
Code:
/Library/Application Support/Microsoft/

However, rather than saying the library cannot be found I now get this:

Code:
Error Signature:
Exception: EXC_BAD_ACCESS
ExceptionEnumString: 1
Exception Code: KERN_CODESIGN_ERROR (0x0000000127533000)
Date/Time: 2020-02-16 14:37:46 +0000
Application Name: Microsoft Excel
Application Bundle ID: com.microsoft.Excel
Application Signature: XCEL
Application Bitness: x64
Application Version: 16.33.0.20011301

Does anyone have any thoughts on what is needed to resolve this?
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top