Change Header In Datatable


I need to change one of the headers in a scrapped data table. Column 1, row 1. It is already a string, I just need it to be changed to “TaskName”

Can someone help?

Have a look at this thread. You can rename the column with an assign statement.

@Em126351 - welcome to community!

you can try
dataTable.Columns(“old_ColumnName”).ColumnName = “new_ColumnName”


Sorry should have said I am unable to use the column name. That’s my issue. It doesn’t scrape very well but it’s all I can use

maybe you can try once again doing the data scrapping and check.

\Had a look at this and first thing I seen worked perfectly thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.