So I have a workbook that is inordinately slow. I noticed that one of the sheets has a ton of extra columns (all the way to XFD
), however after I select the extra columns and delete them or clear all their contents and save, they don't go away. Is there any other way of getting rid of extra columns? Open to both VBA and GUI options.
For reference, I have a macro that copies on cell into a bunch of other cells on other sheets. On another workbook with 4 times as many sheets it takes ~7 seconds to run; on this workbook it takes 10-15min per sheet.
Edit: Also some of the cells on some of the rows become yellow after deleting the columns, but none of the macros in the workbook reference the sheet; if I disable macros the cells still fill in yellow.
Edit 2: Further testing reveals that the rows are filling in with yellow from off the sheet. If I only delete n
columns, then n
columns are added to the end of the sheet with the cells in some rows filled yellow.
Edit 3: Clearing all contents on the sheet (instead of just on the columns being deleted) seems to have worked, but I don't know why. Note that there is a table on the sheet and I selected no
when excel asked if I wanted to delete the table, so I refreshed and it kept my content. I also don't understand where the cells with yellow were coming from, they did not show up if I deleted the cells and had them fill up, instead of deleting the columns.