Hope I didn't bite off more than I can chew...

drayla

New Member
Joined
Oct 14, 2013
Messages
1
So I opened my mouth before I actually thought about it and agreed to write a "quick" bit of code for my group to use at work. I haven't really written any code for anything in close to 25 years, since college excel class oh so long ago...

The Problem
given a spreadsheet with hundreds of rows of data, I need to find each row where the 'Product Name' column contains, lets say ("New Item").( the problem is that ("New Item") isn't consistently placed on the left or right of the string, only that it is always ("New Item"), select each row , copy it and paste it into another sheet.

Stretch goal: After achieving the top bit, i wanted to alter it so that the macro could be run from one workbook, gathering the data from the source workbook via its home on the shared drive, and pasting it into a sheet in the user's workbook is this beyond a simple extra bit of code?

I can pretty much do what i need with the Find All in excel then copy all the results; i tried to use the macro recorder while doing this but for some reason the recorder doesn't record this portion. any help with the recorder or the code snip I'm thinking of would be of immense help.

I have a feeling this has already been covered somewhere since it seems as if this really shouldn't be too uncommon a task, I've tried searching but its tough knowing what I'm looking for.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,216,109
Messages
6,128,883
Members
449,477
Latest member
panjongshing

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