Go to Solution
You should delete the formula referencing the column first:
Column("column name") << delete formula;
Then delete the column.
View solution in original post