+ Reply to Thread
Results 1 to 8 of 8

Looking for help with Find-Copy-Paste macro

  1. #1
    Registered User
    Join Date
    01-29-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    4

    Looking for help with Find-Copy-Paste macro

    Hello everyone. I am looking for some help with a macro that will search through column B of a main data sheet and paste it into the respective worksheets throughout the book. All of the sheets are already named so for example if I had one sheet named PASTED DATA which is full of information about Dogs Cats Frogs and Snakes then I have four more sheets names Dogs, Cats, Frogs, and Snakes. Can someone please help me in writing a macro that Searches column B of the PASTED DATA sheet for "Dogs" then pastes all of those rows into the sheet named "Dogs" and then loop through this based upon the names of the sheets. The names of the sheets can change from project to project but the logic is always consistent. I will always want it to paste columns B:CP from the PASTED DATA sheet into Columns CA:FO of the destination sheet. I would really appreciate any help you can give me.

    Thank you very much,

    Ian
    Last edited by Immchug; 01-29-2012 at 08:26 PM.

  2. #2
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: Looking for help with Find-Copy-Paste macro

    Can You Attach The sheet?

  3. #3
    Registered User
    Join Date
    01-29-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Looking for help with Find-Copy-Paste macro

    Sure. I shaded out the areas that in my real workbooks would typically contain other data and labeled the cell on each sheet where the paste is to occur.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: Looking for help with Find-Copy-Paste macro

    Look at this. This should get you started! Will look at your attachment.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: Looking for help with Find-Copy-Paste macro

    What are black fields for?

    Anyway, there is your file.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-29-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Looking for help with Find-Copy-Paste macro

    The black fields just signify the area of my sheets that will typically contain formulas and other data, hence everything needs to be pasted off to the right of that area. I have to step out for a while but I will take a look at your macro this afternoon. Thank you very much for your help!

  7. #7
    Registered User
    Join Date
    01-29-2012
    Location
    United Kingdom
    MS-Off Ver
    MS Office 2003/MS Office 2010
    Posts
    45

    Re: Looking for help with Find-Copy-Paste macro

    This will copy to the right hand side of black fields.

    You can use any animal name as long as there is corresponding tab with the same name created.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-29-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Looking for help with Find-Copy-Paste macro

    I should be able to tinker with that enough to make it work perfectly. Fantastic work. Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1