+ Reply to Thread
Results 1 to 17 of 17

Data Fetching problem

  1. #1
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Data Fetching problem

    hi excel friends..........

    today i am facing a new difficulty.............

    i already upload a SAMPLE sheet for ready reference

    the problem is when i click on Fetch Data button which is exist in Summary Sheet, please see, the coding of Fetch Data button is given below:-
    Please Login or Register  to view this content.
    This coding work only when the sheet name start with "Form Master (2)", "Form Master (3)", "Form Master (4)"
    now click on Fetch Data button, it will fetch all the data from sheets but in this instant case it will only fetched the data from "Form Master (3)" and "Form Master (4)"..........it did not fetch the Data from "Form Master (2)" why?????????????...........can anyone fix it

    thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    It's because you are doing a partial match, rather than an exact match with
    Please Login or Register  to view this content.
    try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    thankyou sir it is working.......now i am testing this code on my actual sheet

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    You're welcome & thanks for the feedback

  5. #5
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    thankyou so much sir it is working..........but what to do when i want it fetch the data all sheets except "Sheet1" and "Save" Sheet..............thats it

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    As you don't have a sheet called Sheet1, not a sheet called Save, I've no idea what you mean.

  7. #7
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    These sheets are hidden.........

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    I am aware the you have hidden sheets, but none of them are called Sheet1 or Save.
    These are the only sheet in the book
    Form Master (4)
    Form Master (3)
    Form Master (2)
    Master
    Master_Data
    Summary
    Master_2017-18
    Form 123
    FormulaCheck
    Match
    2017-18 Work

  9. #9
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    Sorry for late reply.................yes sir i know "Sheet1" and "Save" is not exist in this workbook.......okay then let assume Form 123 and Match sheet instead of Sheet1 and Save sheet........

    Now, I want when i click on Fetch Data button.....it should fetch data from all sheets except "Form 123" and "Match" Sheet..........

    and tell me further how to delete this Sample file from this FORUM...........

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    I don't understand what you asking, your sheets come in various different layouts & styles.
    Do you really want to copy data from every single one of them bar the two sheets mentioned?

  11. #11
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    Thanks for reply.............i am only want the above said code which you will earlier correct for me.........it should not consider below mentioned sheets
    Master_Data
    Summary
    Master_2017-18
    Form 123
    FormulaCheck
    Match
    2017-18 Work

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    In that case change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    Please Login or Register  to view this content.
    oh sorry to mention some sheets names are
    "Form 12345"
    "Form 22222"
    "Form 54789"
    like this and above code will not work on this.......

  14. #14
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    sir you did not give answer.............
    { oh sorry to mention some sheets names are
    "Form 12345"
    "Form 22222"
    "Form 54789"
    like this and please amend above code which will work if sheets name start with "Form Master" and "Form 12345" something like this......}

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    The easiest thing to do is to ensure that none of the sheets you want to ignore start with "Form" that way you can use
    Please Login or Register  to view this content.
    Otherwise you may have to hardcode sheet names into the code, which is best avoided IMO

  16. #16
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    320

    Re: Data Fetching problem

    Thankyou sir..............

  17. #17
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Data Fetching problem

    You're welcome

+ 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. [SOLVED] Fetching data from another sheet
    By Patwardhan in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-04-2018, 03:22 AM
  2. Fetching Data from website
    By catchanil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2014, 09:45 AM
  3. Problem fetching the collections Item child values ex: item1(1)
    By sanna04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2014, 01:03 PM
  4. Problem fetching the collections Item child values ex: item1(1)
    By sanna04 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2014, 12:18 PM
  5. Data fetching
    By shivarajm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2012, 12:32 PM
  6. Fetching data from another Worksheet
    By Jhedge in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 12:47 AM
  7. Fetching data from another WS
    By Jhedge in forum Excel General
    Replies: 4
    Last Post: 01-17-2007, 12:45 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