Hi All,
I am creating a 5-year budget template and want to incorporate "INFLATE" buttons into the workbook. On the worksheet ("Start") the user would input assumptions including the inflation factor for certain expense categories each year after year 1 (i.e. year 2 = 5%, year 3 = 10%, and so on). On the actual budget worksheet ("BudgetPage"), I have inserted "INFLATE" buttons next to the expense category headings. Each expense category has multiple line items (a range of cells each year) and subtotal. My goal is to create a macro that, upon clicking the "INFLATE" button, would loop through each cell in the line item cell range of the previous budget year inflate it by the factor on sheet "Start", and insert that value in the next budget year.
Example: User inputs 5% inflate travel category for year 2 (Cell= Start!C16) and 8% for years 3-5 (Start!D16:F16) on the "Start" sheet. On the "BudgetPage", user inputs $250 and $500 values in year 1 line items (BudgetPage!I46:I47). User clicks "INFLATE", and years 2-5 line item values (BudgetPage!N46:N47; S46:S47; X46:X47; AC46:AC47) are inflated. If adjustments are needed to target certain yearly/total budget amounts, values can be altered.
Can anyone help?
I am creating a 5-year budget template and want to incorporate "INFLATE" buttons into the workbook. On the worksheet ("Start") the user would input assumptions including the inflation factor for certain expense categories each year after year 1 (i.e. year 2 = 5%, year 3 = 10%, and so on). On the actual budget worksheet ("BudgetPage"), I have inserted "INFLATE" buttons next to the expense category headings. Each expense category has multiple line items (a range of cells each year) and subtotal. My goal is to create a macro that, upon clicking the "INFLATE" button, would loop through each cell in the line item cell range of the previous budget year inflate it by the factor on sheet "Start", and insert that value in the next budget year.
Example: User inputs 5% inflate travel category for year 2 (Cell= Start!C16) and 8% for years 3-5 (Start!D16:F16) on the "Start" sheet. On the "BudgetPage", user inputs $250 and $500 values in year 1 line items (BudgetPage!I46:I47). User clicks "INFLATE", and years 2-5 line item values (BudgetPage!N46:N47; S46:S47; X46:X47; AC46:AC47) are inflated. If adjustments are needed to target certain yearly/total budget amounts, values can be altered.
Can anyone help?