L
LT
Hi everyone,
Has anyone ever used the Excel ActiveX control in their forms or know of a
good reference?
I have the OWC11.Spreadsheet.11 control on a form and I am able to set cell
values but have been struggling with trying to use Excel functions. For
example, I am trying to find the row number of a cell with a certain text
value using the MATCH function and I get an error (2042).
Does anyone know what might be causing that?
Many thanks!
Has anyone ever used the Excel ActiveX control in their forms or know of a
good reference?
I have the OWC11.Spreadsheet.11 control on a form and I am able to set cell
values but have been struggling with trying to use Excel functions. For
example, I am trying to find the row number of a cell with a certain text
value using the MATCH function and I get an error (2042).
Does anyone know what might be causing that?
Many thanks!
Code:
Dim cellReference As Variant
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
'set objExcelWorkbook = objExcel.Workbooks
cellReference = objExcel.Application.Match("Ancillary",
xlsReceiptContainer.ActiveWorkbook.Worksheets("ETSReceipt").Range("A1:A150"),
False)