Copying entire row when a value is present in a certain Column

petaaalouise

New Member
Joined
Apr 23, 2015
Messages
23
Hey guys,

In my Workbook I have Multiple pages.

I need to search "MasterWorks" Column "M" for a value specified by the user through a userform. And if the value is found It needs to copy the entire row to worksheet 2.

There is also a possibility that the value will occur more then once, so I need it to loop through the whole range.

TIA
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
1. We need to know the name of the Userform for example "UserForm1"
2. We need to know the name of the UserForm Textbox where you plan to enter the text to search for example "Textbox1"
3. On sheet 2 where do we put the row of data. On the first empty row or the exact same row it was found on Sheet "MasterWorks"
 
Upvote 0
....
In my Workbook I have Multiple pages.

I need to search "MasterWorks" Column "M" for a value specified by the user through a userform. And if the value is found It needs to copy the entire row to worksheet 2.

There is also a possibility that the value will occur more then once, so I need it to loop through the whole range.
...


Hi,

. You explained you requirement quite well, But I think it is still not to clear to anyone trying to help you exactly what you want. It is much easier for someone to help if you provide a good “picture” of what you want. - As always, “A (Good!) Picture paints a thousand words”

Please prepare a clear “Before” and “After” “Picture”


. To do that you can either
. 1) - post two screenshots ( see notes for how to do that in my signature –Please do not post am image as we cannot copy that to a spreadsheet!)
. or
. 2) - Up left in the Thread editor is a Table icon. Click that, create an appropriately sized table and fill it in. (To get the table icon up in the Reply window you may need to click on the “Go Advanced” Button next to the Reply Button)

.3 ) – attach two files. ( or one File with two sheets, - a “Before” and an “After” ) . For example send over this free thing: Box Net,
Remember to select Share after uploading and give us the link they provide.
………..
. Make sure there is just enough data to make it clear what is needed, so reduce to a maximum of about 40 rows. Remember to desensitize the data – make the data up if you like, as long as it is representative of all possible scenarios and data types.
. - So the “Before” should have just your initial data.
. - The “After”, hand written by you should show exactly how it should look based on the exact sample data you give in the BEFORE.


Alan


P.s.

..check some of these Threads out, they have nothing to do with User forms, but are all variations of copying an entire row based on a value, or values in a column in a master sheet.

Copying a row from a worksheet to multiple new sheets depending on the word in the column
http://www.mrexcel.com/forum/excel-...-value-paste-worksheet-same-name-value-3.html
http://www.mrexcel.com/forum/excel-...-into-multiple-worksheets-based-column-8.html
http://www.mrexcel.com/forum/excel-...her-worksheet-if-column-=-specific-value.html
http://www.mrexcel.com/forum/excel-...her-worksheet-if-column-=-specific-value.html
http://www.mrexcel.com/forum/excel-questions/799667-copying-row-based-coloumn-contents-2.html
http://www.mrexcel.com/forum/excel-...excel-based-certain-criteria.html#post3981936
http://www.mrexcel.com/forum/excel-...et-multiple-excel-files-name-cell-column.html
Extract unique values records across multiple sheets [SOLVED]
Copy and paste entire row to second sheet based on cell value
 
Last edited:
Upvote 0

Forum statistics

Threads
1,222,749
Messages
6,167,958
Members
452,158
Latest member
MattyM

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