VBA macro to delete empty columns in excel

Excel VBA macro to delete empty columns. Just run this macro, enter number of columns you want to check and the macro checks (starting from first column) and deletes all empty columns within the selected number of columns.

In the macro, you can also find VBA syntax to delete empty row and to check whether a column is empty

VBA macro to delete empty columns