I have a table and I'm looking to delete specific columns for further processing via Office Scripts. Also had a look at the API reference but I was not able to find a method to do so.
I have ~30 columns in total but would like to remove several columns which contain blank row data, after which the plan is to use getId()
or getIndex()
to perform further operations on the reduced set of columns.
My concern is that each Excel file does not have a fixed number of columns nor in a specific order, so I guess using getColumnById
or getColumnByName
will be a challenge.
The furthest I could get is to identify the column count, but just wondering if there is a way to achieve the above.
let headerRangeValues = bodyRange.getColumnCount();