BorisTheCat84
New Member
- Joined
- Apr 30, 2021
- Messages
- 17
- Office Version
- 2019
- Platform
- Windows
Hi Team,
I'm looking to run a VBA code from Sheet3 (Consolidated Report) that will check ID1 in sheet2 and when found it has to copy from Sheet2 ID2,Owner,Role,Role Status, and Role Title and insert copied cells (Cells shift down) respecting the cell in column A as the copied data starts from column B but the cell in column A should shift down as well // If it doesn't find ID1 in sheet2 then skip to the other.
In the current example, we have a total of 5 rows but actually the script should detect the last row and stop on it, this report would have in the future x number of rows.
Both Sheet2 and Consolidated Report are in the same workbook:
Sheet2:
Consolidated Report:
Expected Result after running the VBA Code on Sheet3 (Consolidated Report):
Your help will be truly appreciated
I'm looking to run a VBA code from Sheet3 (Consolidated Report) that will check ID1 in sheet2 and when found it has to copy from Sheet2 ID2,Owner,Role,Role Status, and Role Title and insert copied cells (Cells shift down) respecting the cell in column A as the copied data starts from column B but the cell in column A should shift down as well // If it doesn't find ID1 in sheet2 then skip to the other.
In the current example, we have a total of 5 rows but actually the script should detect the last row and stop on it, this report would have in the future x number of rows.
Both Sheet2 and Consolidated Report are in the same workbook:
Sheet2:
Mr. Excel.xls | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Up and Coming Tournament | |||||||
2 | ID1 | ID2 | Owner | Role | Role Status | Role Title | ||
3 | S001 | TK001 | Boris | Clown | NEW | Clown Ready | ||
4 | S002 | TK002 | Kiera | Jungler | NEW | Jungler Sleepy | ||
5 | S003 | TK003 | Tarta | Flyer | NEW | Flyer on the fly | ||
6 | Anton | Spy | Approved | Spy mode activated | ||||
7 | Caro | Asher | Approved | Asher is Ashing | ||||
8 | Sinna | Spy | pending | Spy mode activated | ||||
9 | S004 | TK004 | Victor | Clown | Approved | Clown Ready | ||
10 | Caro | Asher | Approved | Asher is Ashing | ||||
11 | TK005 | Arsene | Clown | pending | Clown Ready | |||
12 | S006 | TK006 | Boris | Asher | pending | Asher is Ashing | ||
Sheet2 |
Consolidated Report:
Mr. Excel.xls | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Consolidated Report | |||||||
2 | ID1 | ID2 | Owner | Role | Role Status | Role Title | ||
3 | S001 | |||||||
4 | S004 | |||||||
5 | S003 | |||||||
6 | S005 | |||||||
7 | S006 | |||||||
8 | S002 | |||||||
Consolidated Report |
Expected Result after running the VBA Code on Sheet3 (Consolidated Report):
Consolidated Report | |||||
ID1 | ID2 | Owner | Role | Role Status | Role Title |
S001 | TK001 | Boris | Clown | NEW | Clown Ready |
S004 | TK004 | Victor | Clown | Approved | Clown Ready |
Caro | Asher | Approved | Asher is Ashing | ||
S003 | TK003 | Tarta | Flyer | NEW | Flyer on the fly |
Anton | Spy | Approved | Spy mode activated | ||
Caro | Asher | Approved | Asher is Ashing | ||
Sinna | Spy | pending | Spy mode activated | ||
S005 | |||||
S006 | TK006 | Boris | Asher | pending | Asher is Ashing |
S002 | TK002 | Kiera | Jungler | NEW | Jungler Sleepy |
Your help will be truly appreciated