Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Odd Excel Interop Behavior

$
0
0

@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.worksheet

My 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

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>