VBA Move Row to Another Sheet Based on 2 Criteria

AMD00010

New Member
Joined
Jul 12, 2018
Messages
6
Hello --

Looking for help with the following situation.

I'd like to move an entire row from "Worksheet 1: Pending Items" to another Worksheet based on the value in Column 1 and the Status in Column 3. In my simplified example below (header row in bold), I'd like Row 3 from "Worksheet 1: Pending Items" to move to "Worksheet 2: Div 02" when the Status is marked close and because the Value in Column 1 is 02. This would repeat for all values in Column 1; i.e. Row 4 would move to "Worksheet 3: Div 03" when the Status in Column 3 is marked Closed. And so on.

Anyone have a solution I can try? Thanks in advance.

Worksheet 1: Pending Items
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[TD]Column 3[/TD]
[/TR]
[TR]
[TD]Row 1 (Header)[/TD]
[TD]Div #[/TD]
[TD]Type.[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]01[/TD]
[TD]Example 1[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]02[/TD]
[TD]Example 2[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]03[/TD]
[TD]Example 3[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]

Worksheet 2: Div 02
[TABLE="width: 500"]
<tbody>[TR]
[TD]Div #[/TD]
[TD]Type.[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]02[/TD]
[TD]Example 2[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]

Worksheet 3: Div 03
[TABLE="width: 500"]
<tbody>[TR]
[TD]Div #[/TD]
[TD]Type.[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD]03[/TD]
[TD]Example 3[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top