Hi everyone!
I’m an Excel VBA novice. I have a file that I currently update using a combination of complex Excel formulas and copy/paste but I am trying to restructure the file using VBA as I think it might be more efficient. I’ve started researching some stock VBA code but I think I’m going to need some help. I’d greatly appreciate some support.
Background
Macro 1: (see first screenshot below)
In the example sheet below, the goals are entered into rows 8-17 during the year. I’ve put in a placeholder in row 17 marked “END” so that users can only add rows above that line. I’m flexible on this approach and can change approach if needed. The prior year goals are copied and pasted from row 23 onwards.
What I am looking for from a VBA macro:
At the start of each year, I want to be able to roll the template for updating. For each tab, copy the populated goals (which will be from the prior year) for the dynamic range (in this example, rows 8-17) and paste them above Row 23 (so the older values from Row 23 onwards get pushed down the sheet). Empty the values in E8 through I17 to be populated with new data
Macro 2: (see second screenshot below)
What I am looking for from a VBA macro:
Based on the year input in Cell E4, copy and paste the corresponding goals for that year (lookup from each tab in column C) for each tab to present a consolidated summary of goals.
Thanks in advance
I’m an Excel VBA novice. I have a file that I currently update using a combination of complex Excel formulas and copy/paste but I am trying to restructure the file using VBA as I think it might be more efficient. I’ve started researching some stock VBA code but I think I’m going to need some help. I’d greatly appreciate some support.
Background
- Excel sheet with multiple tabs (Name1, Name2, etc) that contain goals for the current year on top that a user updates and prior year goals summarizes at the bottom of the sheet. Number of goals will vary for each tab.
- Excel summary sheet consolidate the goals for all the different tabs based on the user input year.
Macro 1: (see first screenshot below)
In the example sheet below, the goals are entered into rows 8-17 during the year. I’ve put in a placeholder in row 17 marked “END” so that users can only add rows above that line. I’m flexible on this approach and can change approach if needed. The prior year goals are copied and pasted from row 23 onwards.
What I am looking for from a VBA macro:
At the start of each year, I want to be able to roll the template for updating. For each tab, copy the populated goals (which will be from the prior year) for the dynamic range (in this example, rows 8-17) and paste them above Row 23 (so the older values from Row 23 onwards get pushed down the sheet). Empty the values in E8 through I17 to be populated with new data
Macro 2: (see second screenshot below)
What I am looking for from a VBA macro:
Based on the year input in Cell E4, copy and paste the corresponding goals for that year (lookup from each tab in column C) for each tab to present a consolidated summary of goals.
Thanks in advance