Drop down selection copies data onto separate sheet

Linky01

New Member
Joined
Apr 28, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm not entirely sure how to explain this but.....

I have a workbook with 2 different sheets on it. On the first sheet there is a drop down menu in column E with the options 'Ordered' 'Not Ordered' and 'Hold'.

What I want excel to do is when the option 'Ordered' is chosen in the drop-down in Column E, to copy the data from column A of that row, and copy it onto the second sheet, therefore creating a sheet with all those that have ordered...

Can someone help?

Thanks in advanced.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Attach this code to the sheet1's code module:

Private Sub Worksheet_Change(ByVal Target As Range)
If LCase(Target.Value) = "ordered" And Target.Column = 5 Then
Target.Offset(, -4).Copy Sheets(2).Cells(Rows.Count, 1).End(xlUp).Offset(1)
End If
End Sub
 
Upvote 0
Thanks for that. Just one thing...

I have never used Macros in my life! So woul you be able to give me the steps I need to do to insert this code?

MT
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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