+ Reply to Thread
Results 1 to 14 of 14

Need help to fetch data from other sheet based on Resource Name

  1. #1
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Need help to fetch data from other sheet based on Resource Name

    Hi all i am facing some problem. i don't know how do i resolve it. any one can help me?

    Actually i want, when i select the "Resource Name" from drop down in summary sheet then all the data fetch from the BD sheet.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Need help to fetch data from other sheet based on Resource Name

    Here is some VBA code that will do what you want, however to make this work, you will need to unmerge all the cells in rows 5 and 6 or the code will not work. VBA does not play well with merged cells. Place a command button on your Summary worksheet and attach this code to the button.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    Thanks Alan for this help. i need one more help. when i change one Resource Name to another name then previous resource data already have in the summary sheet. I want to show only selected resource name data.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Need help to fetch data from other sheet based on Resource Name

    @Alan:

    you could probably get away with using column F to determine the last row. Then you can leave the merged cells alone.

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    Hi TMS

    i need one more help. when i change one Resource Name to another name then previous resource data already keep in the summary sheet. I want to show only selected resource name data.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Need help to fetch data from other sheet based on Resource Name

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    Hi TMS,

    i am getting run time error 1004 "We can't do that to a merged cell"

  8. #8
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    i have made some changes in the code and it is working fine...thanks TMS

    Please Login or Register  to view this content.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Need help to fetch data from other sheet based on Resource Name

    What can I say? It doesn't do that for me with the sample file that you uploaded. I didn't change the structure of any of the sheets. I just copied and adapted Alan's code, and then added the extra lines to clear the data before refreshing.

    I think you need to look at the layout of your live workbook. The code, as it stands, should not be trying to clear any merged cells.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Need help to fetch data from other sheet based on Resource Name

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  11. #11
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    Hi TMS,

    I have made some changes and getting an error. Can you please tell me where i have done a mistake?
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    Hi TMS,

    Sorry.. i have attached wrong file... Please find attached the right file.
    Attached Files Attached Files

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: Need help to fetch data from other sheet based on Resource Name

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    07-15-2015
    Location
    Kolkata
    MS-Off Ver
    2010 & 2013
    Posts
    303

    Re: Need help to fetch data from other sheet based on Resource Name

    i want to see all the BD data when i select the "ALL" from combo box. So please let me know, where i need to change the 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)

Similar Threads

  1. Data Fetch From One Sheet to Another Sheet Based on Check Box
    By Sanjibghosh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2016, 10:56 AM
  2. macro to loop through data sheet , fetch 8 rows at a time and put in new sheet
    By nyree in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2015, 01:46 AM
  3. Fetch the data from another sheet based on drop down list
    By sreejeshc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2015, 02:26 AM
  4. [SOLVED] How to fetch data from one sheet in excel and insert into another sheet using VB
    By gokul1242 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2012, 11:38 AM
  5. Fetch data from another sheet based on a filter value
    By jrule in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2011, 12:38 PM
  6. VBA Macro to fetch images based on URLs in sheet
    By jhodges in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2010, 08:38 AM

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