HI @Greggy
You will have set of standard column count right? I think you 9 standard columns and 2 unwanted column
So you can try like this
- After Reading the Datatable and Stored in a variable called DT or whatever.
- If Dt.Columns.Count>9
- True-> Excel Application Scope
- Insert/Remove Columns
- False-> Leave Empty
- True-> Excel Application Scope
Hope this Helps
Regards
Sudharsan
