insert column with data VBA

RompStar

Well-known Member
Joined
Mar 25, 2005
Messages
1,200
When I try to manually insert a column by highlighting it and then right-clicking and selecting insert, I get an error from Excel that "Excel can not insert a new column, because of non-blank cells off the worksheet". But when I manually setup a test workbook and insert headers and with data, clearly it is not blank, is allows me to insert a column, what is wrong with Excel ?

Or what am I doing worng ? I mean, this is annoying, I copy that sheet to a new workbook with the same data and try to insert the column and no error, it works ? and it is not protected, is this another Excel bug ? even if I select that column and delete all the data, I still can't insert a new column, I get that same annoying stupid error! :-)

Excel 2003.

Looking for a VBA solution, basically trying to insert a column infront of AG which is not blank, headers start at A6, data at A7.

Thanks!
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top