Of course ask whatever you need mate.
If you check the code:
Every time I run the macro it creates those two new columns. Those columns are for every year.
As for the 20 years limit. After 20 years yes there will be 40 new columns each of them with Yield 2014, IDX 2014 then Yield 2015, IDX 2015.
To rephrase it I want the first time I will use the macro to create two columns with names Yield 2014 and IDX 2014 before the steadycell,
the next time that I will use the macro I want it to create Yield 2015 and IDX 2015 which of course will be before the Steady Cell and after 2014 infos.
If it is possible I would prefer without the limit of 20 years because it is for a client!
So with the code above I can create the two columns,
now I want to automate the process of filling the first row as a title with Yield 20XX and IDX 20XX respectively.
Also please inform me if you can about the error that the code you suggested returns. Because I need to know how to refer to those cells relatively to the steadycell and not use the code above:
where C and D are the new columns for this run.
Thanks for your help.
Bookmarks