Insert new blank columns using VBA after every nth column and then copy the formula to these New Columns

mikelee

New Member
Joined
Jun 7, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi ,

I would like to add a few new Columns based on a Cell value (,e.g. Cell B2) to 4 Excel worksheets using VBA after every nth column and then copy the formula in the last columns and paste the formulas to the new blank columns .

E.g. insert 7 new columns from columns I and then copy formulas in Column H and paste formulas in column H to the new inserted columns. Would appreciate any help and guidance you can provide!

Thanks a lot!

Mike


Insert Columns and Formulas.PNG
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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