I am trying to call a macro from another workbook, and I keep getting the following error.
Cannot run the macro
'IMECM_To...
The macro may not be available in this workbook or all macros may be disabled.
I have made sure the macro name is spelled correctly, and have made sure that the macro is spelled correctly.
I have looked online and have not been able to figure out how to fix this.
Thanks
Here is the code
Sub move()
Dim wb As Workbook
Dim MacroFolder As String
Dim MacroWb As String
MacroFolder = "C:\Users\zhill\Desktop\macro learn\"
MacroWb = "IMECM_To_LDW_CSV_Format-20151023-for-2015Q3-for-udf-version-13.0.015.xlsm"
Set wb = Workbooks.Open(MacroFolder & MacroWb)
wb.Sheets("ALFA to Corp CSV").Cells(13, 2) = ThisWorkbook.Sheets("sheet1").Range("IntexFolderList").Cells(1, 1)
wb.Sheets("ALFA to Corp CSV").Cells(14, 2) = ThisWorkbook.Sheets("sheet1").Range("OutputFolderList").Cells(1, 1)
wb.Sheets("ALFA to Corp CSV").Cells(9, 9) = ThisWorkbook.Sheets("sheet1").Range("RunNbr").Cells(1, 1)
wb.Sheets("ALFA to Corp CSV").Application.Run (MacroWb & "!ALFAtoCorpCsvFormat")
End Sub