@ToddPull wrote:
In my sequence I created four global variables:
excel - microsoft.office.interop.excel
workbook - microsoft.office.interop.excel.workbook
sheets - microsoft.office.interop.excel.sheets
worksheet - microsoft.office.interop.excel.worksheetMy goal is to initiate the variables and pass the variables to different Invoke Code activities via the activity’s IN/OUT arguments. I am able to pass the excel and workbook variables, but get the following error for the sheets and worksheet variables:
“A value of type ‘System.__ComObject’ cannot be set to the location with name sheets because it is a location of type ‘Microsoft.Office.Interop.Excel.Sheets’.”
Posts: 1
Participants: 1