VBA- Move Row to Another Sheet Based on Text- Multiple Sheets

sbentley

New Member
Joined
Sep 18, 2019
Messages
1
Hello,

Forgive me, this is my first time working with VBA. I have done my fair share of Googling but have not found a solution. I am trying to get my workbook to move an entire row of data from one sheet to another based on the text found in a column. I was able to figure this out- to an extent. Currently my workbook will move the row (and delete the empty row) to a sheet titled "Complete" if "Delivery Scheduled" is entered in column AJ.

Question: Is it possible to have the text in column AJ determine which sheet the row moves to with each selection moving to a different sheet?

Example: The first sheet would contain a list of files and have an outcome status entered in column AJ by the user.
The data entered here would determine what sheet the row would move to (with each selection routing to a separate sheet).


Text entered into column AJ:Sheet Title row is moved to:
Delivery ScheduledComplete
Intake PrepIntake Prep
IVIV

<tbody>
</tbody>

Is this possible? Thank you in advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
There are several ways to do it. You can do it all with code by using a Select Case algorithm or you can use a helper column where you list the destination sheet on the corresponding row to the value in column AJ and simply refer to that range value, eg. If col AK listed the destination sheet and cell AJ25 had 'Delivery Scheduled' value Then
Code:
Range("A25:AJ25").Copy Sheets(Range("AK25").Value).Cells(Rows.Count, 1).End(xlUp)(2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,974
Members
448,537
Latest member
Et_Cetera

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