I have this datatable where I want to add a column named “RowNumber” to the right most of the table but it does not add the said column name. What is the possible solution for this?
Kindly see below the workflow, the excel file being used, and the desired output. Thank you.
I can’t download your files (security restrictions).
Post screenshots of the relevant section of your code.
Are you adding the column BEFORE using Read Range to get the data? If so, that’s your problem. Add the column AFTER using Read Range to get the data into a datatable.
Anyway, that’s just a guess at what the problem could be. Screenshots should help.
Another possible reason is that if you’re writing back to the spreadsheet with Append Range and have an additional column of data in your datatable, it will NOT rewrite the headers at the top of the Excel file.