+ Reply to Thread
Results 1 to 5 of 5

Macro to extract and list data on a new sheet

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Macro to extract and list data on a new sheet

    Can someone please give me some help with this problem?

    I have 2 work books, one called ( Warehouse Wastage ) which is the master sheet

    The other is called ( short coded ambient allocations 160712 )

    If you open the master sheet you will see I have some hyperlinks under peoples names, these hyperlinks are pointing to the ( coded ambient allocations 160712 0 sheet

    When the link is clicked it brings up the sheet, but what I am looking for is when a hyperlink is clicked instead of bringing up the whole sheet I want it to only list the products against the name.

    If you look at G7 on the Warehouse Wastage, you will see a sum of £50.40 under the name Jimmy, when I click on this sum I would a sheet to appear with only Jimmys products, in this case it will list ( coded ambient allocations 160712 ) A21 – U21

    On the coded ambient allocations 160712 sheet the names are listed in the U Column

    If I click on the sum under Ross on the Warehouse Wastage sheet I would like it to list all Ross’s product from A – U

    Is this possible?
    Last edited by SilverFox; 07-17-2012 at 10:54 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Macro to extract and list data on a new sheet

    Hello there below is a macro that will filter the workbook "short coded ambient allocations 160712.xls" by the individuals name when you click on the macro.

    To insert the macro, right click on the "Allocations" worksheet tab in the "WAREHOUSE WASTAGE 2012(1).xls" workbook and select view code.

    This will bring up Visual Basic. In the blank space provided Paste the below code. Anything that appears in green is a comment I made that is meant to help you understand the code.

    Please Login or Register  to view this content.
    Close out of Visual Basic. Now whenever you click on a hyperlink the code will run and filter the other workbook by the name.

    Let me know if this works for you!

    Thanks!

    RVASQUEZ

  3. #3
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Macro to extract and list data on a new sheet

    Hi RVASQUEZ

    Thanks very much for that, but i have a problem. I will be adding lots of different short coded ambient allocation sheets with different names.

    Is it possible to amend this code so no matter what sheet the hyperlink points to i will get the same result?

    great start though, thank you very much, i did not think this would be possible

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Macro to extract and list data on a new sheet

    Hello there,

    Try replacing the code I supplied earlier with this instead:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Macro to extract and list data on a new sheet

    Thank you very much my friend, Problem solved

+ 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