+ Reply to Thread
Results 1 to 5 of 5

Get data from another sheet

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    UK
    MS-Off Ver
    2007
    Posts
    2

    Get data from another sheet

    Hi There, Wonder if you can help me with some VB. I'm just getting into it and need a little hand in what I am doing

    I've attached a sample spreadsheet of what I've sort of done.

    On the sheet SCHED there is a list of runs by drivers, and drops

    In cell A1 on each of the other sheets is the name of a run (Run 1, Run 2 etc)

    What I would like is a macro/active button on each of the other sheets that will take the value in cell A1, look at the column B of the SCHED sheet, and copy all rows (columns A to G) that have that value in it, and paste them onto the other sheet starting in cell A3.

    Or would it be possible to name the other sheets Run 1 etc, and have a macro on the SCHED sheet to move any rows to with RUN 1 in column b to the sheet Run 1, RUN 2 in column b to the sheet Run 2, etc etc.

    The number of runs can vary from 1 to 50.

    Thanks In Advance

    Graham
    Attached Files Attached Files
    Last edited by grahamscotland76; 11-01-2012 at 08:06 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Get data from another sheet

    Attach again the file with sheet a compiled as you want
    If solved remember to mark Thread as solved

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Get data from another sheet

    Hi grahamscotland76

    Welcome to the Forum!

    This code in the attached and appears to do as you require. Let me know of issues.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    11-01-2012
    Location
    UK
    MS-Off Ver
    2007
    Posts
    2

    Re: Get data from another sheet

    Hi Jaslake

    That is almost what I am looking for. I've attached another file to see if it is possible to makeit slightly better.

    When the RUN x tabs are made, it is possible to use the sheet called Masterrun as a template so that the RUN x tabs look like RUN 1 tab?

    Ta


    GrahamCopy of Transport v1.1.xlsm

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Get data from another sheet

    Hi grahamscotland76

    Replace the code with this code
    Please Login or Register  to view this content.

+ 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