+ Reply to Thread
Results 1 to 4 of 4

copying data from one sheet to another based on selection

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    new orleans, Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    5

    copying data from one sheet to another based on selection

    I'm trying to create a workbook that will sort data from multiple sheets and place the relevant info into another sheet based on user input. there will be multiple sheets that are exactly the same name A1 - A10 for example. within those sheets there is a column that allows user to select from pull down list 2 options, in or out. they in also type in a comment in the adjacent column. In the end I want to have a separate sheet named "in" and one named "out" that would sort through sheets A1 - A10 and pull the comments when the word "in" or "out" is selected from the pulled down list. also would like to know which sheet A1 - A10 the comment was pulled from.

    any suggestions? please let me know if more information needed to provide possible solution.

  2. #2
    Registered User
    Join Date
    08-12-2010
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: copying data from one sheet to another based on selection

    Quote Originally Posted by kevinspruell View Post
    I'm trying to create a workbook that will sort data from multiple sheets and place the relevant info into another sheet based on user input. there will be multiple sheets that are exactly the same name A1 - A10 for example. within those sheets there is a column that allows user to select from pull down list 2 options, in or out. they in also type in a comment in the adjacent column. In the end I want to have a separate sheet named "in" and one named "out" that would sort through sheets A1 - A10 and pull the comments when the word "in" or "out" is selected from the pulled down list. also would like to know which sheet A1 - A10 the comment was pulled from.

    any suggestions? please let me know if more information needed to provide possible solution.
    First you need to create a loop that will loop through the ten sheets. There's a few ways of doing this. See here for one method: http://www.vbaexpress.com/kb/getarticle.php?kb_id=390. I used another way.

    I had to make a few assumptions but you should be able to fix them if they're wrong.

    Please Login or Register  to view this content.

    I didn't actually run this so it could be filled with errors but see how you get on with that much

  3. #3
    Registered User
    Join Date
    08-16-2010
    Location
    new orleans, Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: copying data from one sheet to another based on selection

    thanks this will probably do what i want, but i have not idea how to get it into and work in my file. it needs modification. attached is a copy of my file if that helps
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-12-2010
    Location
    Dublin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: copying data from one sheet to another based on selection

    Quote Originally Posted by kevinspruell View Post
    thanks this will probably do what i want, but i have not idea how to get it into and work in my file. it needs modification. attached is a copy of my file if that helps
    Sorry, I didn't see this until now. If it's not too late...

    If you open up the VBA editor (in excel press ALT+F11), go to Insert > Module. Paste that code into the page that appears. Then to run it put your cursor anywhere in the code and press F5 or click the run button (the little green play button) up top.

+ 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