ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add a new column to a worksheet (https://www.excelbanter.com/excel-programming/372371-add-new-column-worksheet.html)

Yoda[_3_]

Add a new column to a worksheet
 
Hello all,

I'm trying to make an application that needs to create new columns as
the user inputs the data. The problem appears when the user wants to
create a new column between two previously created. The data should
move to the right (as happens when you push "create a complete column"
in the popup menu of the grid. I don't know if there is a way to add a
new column this way without having to move the data by hand (and so,
having to change the formulas by hand). Could you help me, please?

Thank you all :)


Tom Ogilvy

Add a new column to a worksheet
 
Columns(3).Insert

should insert a new column 3 and the old column 3 is shifted to the right.

--
Regards,
Tom Ogilvy


"Yoda" wrote:

Hello all,

I'm trying to make an application that needs to create new columns as
the user inputs the data. The problem appears when the user wants to
create a new column between two previously created. The data should
move to the right (as happens when you push "create a complete column"
in the popup menu of the grid. I don't know if there is a way to add a
new column this way without having to move the data by hand (and so,
having to change the formulas by hand). Could you help me, please?

Thank you all :)




All times are GMT +1. The time now is 10:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com