+ Reply to Thread
Results 1 to 4 of 4

Intersect Function - Copy Data to other worksheets

  1. #1
    Registered User
    Join Date
    04-23-2007
    Posts
    24

    Intersect Function - Copy Data to other worksheets

    I am currently having an issue with a piece of code that uses the Intersect function.

    I have a sheet of data (called Data) and I wish to move columns of data within that sheet (Batch_Name_Col and Country_Code_Col) that meet certain criteria into a corresponding worksheet. Eg all the items with a Country Code of "CN" will move to the "CN"
    worksheet.


    Now the below works but I now need to "move" more than just two columns (poss. up to 10) and I just cannot seem to work out how i should amend this code and would really appreciate any assistance/pointers.


    Please Login or Register  to view this content.
    thanks again in advance - i am relly struggling with this one.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Intersect Function - Copy Data to other worksheets

    Hello rka81,

    If I understand you correctly, this should do what you want...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-23-2007
    Posts
    24

    Re: Intersect Function - Copy Data to other worksheets

    Quote Originally Posted by Leith Ross View Post
    Hello rka81,

    If I understand you correctly, this should do what you want...
    Please Login or Register  to view this content.
    Hi, Thanks for the response.

    It's kind of what i need. In short - I need to copy say 10 columns of data for each row that has a specific "COUNTRY CODES" - so for every row that contains "CN" in the Country Code column I want to copy all that entire row to the "CN" sheet. I was trying to use my code to filter down per Country and copy the data per column - but couldnt work out how to copy more than two columns with the Intesect function without getting errors.

    Sorry i'm not sure if this is explained well enough

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Intersect Function - Copy Data to other worksheets

    Hello rka81,

    I think it would be best to post your workbook. If you are using Excel 2007, please post a copy in Excel 2003 format. I and many others don't have 2007. Be sure to remove or change any information that is either proprietary or sensitive in nature before you post your workbook.

+ 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