Hello everyone! This is my very first post on mrexcel.com but I've been a site regular for many months now. You guys rock! I always find a thread of someone having the same doubt as myself, but I now have a somewhat specific query: I have a data sheet that is updated monthly where monthly accidents are loaded, as well as the accumulated accidents of the current and past year and the goal.
This is then graphed on a time series where the last three columns (the accumulateds and goal) are represented as bar charts on the same graph. Because of this reason, everytime a new month is added I must "sandwich" it between the previous month and the 2021 Accumulated. To do this I always insert a new column between those two and then drag the fill handle of the month to automatically add the current month and then manually add the value of the accidents below.
I believe there must be a way to automate this with VBA. I've seen other people with similar issues but they often only want to autofill the date to the very last column (or row if they are doing it vertically). But the column I want to autofill is not the last one, so I'm not sure how to approach this. If you wise fellas could help me with a macro that could create a space between the last added month and the 2021 accumulated columns and then autofill it with the next month to be added I would be extremely thankful! THANKS!
A-AO | AP | AQ | AR | AS | AT | AU | |
1 | ... | sep-21 | oct-21 | nov-21 | 2021 Accumulated | 2020 Accumulated | Goal |
2 | ... | Value | Value | Value | Sum Value | Sum Value (from other sheet) | Value |
This is then graphed on a time series where the last three columns (the accumulateds and goal) are represented as bar charts on the same graph. Because of this reason, everytime a new month is added I must "sandwich" it between the previous month and the 2021 Accumulated. To do this I always insert a new column between those two and then drag the fill handle of the month to automatically add the current month and then manually add the value of the accidents below.
I believe there must be a way to automate this with VBA. I've seen other people with similar issues but they often only want to autofill the date to the very last column (or row if they are doing it vertically). But the column I want to autofill is not the last one, so I'm not sure how to approach this. If you wise fellas could help me with a macro that could create a space between the last added month and the 2021 accumulated columns and then autofill it with the next month to be added I would be extremely thankful! THANKS!