Run XLAM from macro

jtdewhurst

New Member
Joined
Jan 16, 2015
Messages
26
Hello, I'm trying to run an XLAM file from a macro. Using the run method I get the following error

Run-time error '1004':

Cannot run the macro
(filepath)
The macro may not be available in this macro or all macros may be disabled.

I'm quite familiar with VBA, but am just starting with .xlam files, so I think that this is something really basic. I have macros enabled in the workbook.

Here is my run code.

Code:
Sub call_xlam_test()
    out = Run("C:\Users\joel.dewhurst\AppData\Roaming\Microsoft\AddIns\SingleCellToleranceParsingAddIn.xlam!ParseSingleCellTolerance", Sheets(1).Range("A1"), Sheets(1).Range("B1"))
End Sub
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

I think the xlam file would need to have a digital signature applied to the VBA project. The digital signature would need to be trusted by the environment within which the code will run. Easy if you are running this on a single machine as you can self-certify a digital signature, but more complex if you are doing this in a corporate environment.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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