Macro for monthly report and shifting columns

matt1960

New Member
Joined
Oct 24, 2013
Messages
11
I do 11 reports at month-end. They all have the exact same field names and number of columns. Each contains 150 columns currently. However, at month-end I have to add 14 additional columns. Then for several existing columns I have to change the field names. For instance, the column name "Aug'13-Sep'13" turns into "Aug'13-Oct'13". I run a macro every month and use it on all 11 reports. However, the macro becomes useless when the next month-end period rolls along. In other words, the macro is so big that it can't be updated and used again. The process of recording the macro takes several hours and it's only good for 30 days...any suggestions on smarter approaches would be kindly appreciated. Much respect.
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Post the macro you have recorded, no matter how large it can be trimmed down and then altered to be more dynamic.

Please use the
Code:
 tags when posting.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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