DeleteColumns Method Example

Deleted columns include the specified range. This example deletes columns A and B from the active worksheet.

Spreadsheet1.ActiveSheet.Range("a1").DeleteColumns 2

This example deletes only column C.

Spreadsheet1.ActiveSheet.Range("c3:d3").DeleteColumns 1

This example deletes columns C and D.

Spreadsheet1.ActiveSheet.Range("c3:d3").DeleteColumns