Excel VBA to copy/paste, lookup, and aggregate dynamic ranges on multiple tabs

Smartkid

New Member
Joined
Jul 20, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
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
  • 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

1595287815017.png

1595287861976.png
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Smartkid

New Member
Joined
Jul 20, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I didn't receive any responses to the above and wanted to know if there was any additional information that I could provide that would be helpful.
I appreciate the assistance of the experts here on the forum!
 

Watch MrExcel Video

Forum statistics

Threads
1,119,093
Messages
5,576,061
Members
412,696
Latest member
khanhvy31
Top