sanjayselvarajagoda
New Member
Hello VJR,Hi shilpareddy,
- Simply make a copy of the existing 'Save Workbook As' action tab of the MS Excel VBO.
- Rename it as 'Save Workbook As CSV'
- Go to the Code stage and modify the below marked in bold
wb.SaveAs(filename,6)
6 is the numeric constant for xlCSV FileFormat.
- Publish your new action
- From the process when you pass the 'Filename' Input parameter pass it with the .csv extension
"c:\MyFileName.csv"
- After you run the process you will see the Input/Output as below
View attachment 716
I tried the above approach.
this method works perfectly fine on debug mode, when tried to run the code in full speed mode /or via control room.
I get an error stating :
Internal : Could not execute code stage because exception thrown by code stage: SaveAs method of Workbook class failed .
I even tried to increase the timeout in the code to 90 seconds and still no luck.
Please see the attached and advise .
Please let me know what is missing .
Thanks
Sanjay