Quick Macro - Copy and Paste into sheet #3

pklimchuk

Board Regular
Joined
Oct 8, 2010
Messages
101
Hello

Looking for a Macro

IF A2 = "BOB Smith"

Copy the eniter row and paste in sheet #3
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Are you then going to go down the entire column A? Is sheet #3 named "Bob Smith" to match? Are there other names to go to other sheets?

'SHEET1 TO MANY SHEETS
Here's a macro for parsing rows of data from one sheet to many sheets named for the same values in a specific column.

It not only can parse the rows, it can create the sheets if they are missing. There is a sample sheet there where you can test this out.
 
Upvote 0
Then that's the macro for you. It's already set to parse by column A, it sounds like you row1 is "titles" like it needs to be for the AutoFilter to work cleanly.

The only thing you'll need to edit on the macro before running it is setting the correct sheet name. Either change your sheet name to "Data", or edit this line of code to match your data sheet name.
Rich (BB code):
'Sheet with data in it
   Set ws = Sheets("Data")
 
Upvote 0
Your Macro just makes a copy of my entier sheet.

I need a macro: in an active worksheet

when it finds "bob Smith" make a copy of that row and paste it into a new worksheet.
 
Upvote 0

Forum statistics

Threads
1,203,115
Messages
6,053,593
Members
444,674
Latest member
DWriter9

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