J
Jonathan
Hi, I'm calling a macro in Excel. If I don't have any arguments then it is
successful. However, with arguments if fails?
I can call this macro from within the workbook successfully.
This is the first line of the macro...
Public Sub AddProduct(ByRef AddProductSuccessful As Boolean, _
ByVal newSheetName As String, Optional CalledByUser As Boolean =
True)
This is the line in Access to call the above macro in Excel...
mxlApp.Run "(basAddProduct.AddProduct(" & fAddProductSuccessful & ", " &
Chr(34) & !spSupplierCode & Chr(34) & ", False))"
Any ideas or recommendations appreciated
Many thanks,
Jonathan
successful. However, with arguments if fails?
I can call this macro from within the workbook successfully.
This is the first line of the macro...
Public Sub AddProduct(ByRef AddProductSuccessful As Boolean, _
ByVal newSheetName As String, Optional CalledByUser As Boolean =
True)
This is the line in Access to call the above macro in Excel...
mxlApp.Run "(basAddProduct.AddProduct(" & fAddProductSuccessful & ", " &
Chr(34) & !spSupplierCode & Chr(34) & ", False))"
Any ideas or recommendations appreciated
Many thanks,
Jonathan