Hello,
For my job, I work on audits of various companies. Several of the companies are construction companies with similar-looking financial statements. I have the spreadsheets for each company with ten years of financial data and analytical formulas that contains graphs linked to the data for the last five years. I want to create a macro that will add a new tenth year column and take out the current first year column to maintain ten years of data, but I need to maintain five years of data for the graphs. I have been able to do this for one company through the macro recorder and some code manipulation in VBA (I am still a beginner at macros), but the macro is not fully compatible with the other companies due to slight differences in line items in the data or formulas. Does anyone have any ideas of how to generalize the macro to work for each company without writing a totally new code for each one?
Thank you
p.s. The code is very long and complex, so I will only include portions of it if necessary.
For my job, I work on audits of various companies. Several of the companies are construction companies with similar-looking financial statements. I have the spreadsheets for each company with ten years of financial data and analytical formulas that contains graphs linked to the data for the last five years. I want to create a macro that will add a new tenth year column and take out the current first year column to maintain ten years of data, but I need to maintain five years of data for the graphs. I have been able to do this for one company through the macro recorder and some code manipulation in VBA (I am still a beginner at macros), but the macro is not fully compatible with the other companies due to slight differences in line items in the data or formulas. Does anyone have any ideas of how to generalize the macro to work for each company without writing a totally new code for each one?
Thank you
p.s. The code is very long and complex, so I will only include portions of it if necessary.