+ Reply to Thread
Results 1 to 10 of 10

Search on sheets depending on combobox value

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Search on sheets depending on combobox value

    Hello, could you please help me with this.

    I have this excel file with userform that search in sheets.
    Here i just want, when i choose the month in combobox, it will search in corresponding sheets. I have attached the sample file


    For example: If i choose "January" in combobox, and enter task number "4401" it will will search in January sheet and give me a result of PM=2, SA=5, IS=10 and Assoc IS/IDE=11

    or when i chose February and enter task number 4401, it will search February sheet, PM=5, SA=5, IS=5 and Assoc IS/IDE=5.

    if March and 4401, PM=5, SA=4, IS=17 and Assoc IS/IDE=10.
    Attached Files Attached Files

  2. #2
    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: Search on sheets depending on combobox value

    Hi puuts

    Perhaps this
    Please Login or Register  to view this content.
    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.

  3. #3
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Search on sheets depending on combobox value

    Hi John, thanks!. By the way when i pick for the month with blank sheet and enter number in task number field, it stuck in "popping message... blah blah blah" and i can't clear nor pick other dates. Could you please help me with that?

    For Example: if i choose "June", and enter number in task number, it will display a message "BoE for this Month is not yet available".

    Also, i just want to pop-up a message "Select Month First" when they try to enter task number without selecting month.
    Last edited by puuts; 03-14-2013 at 04:06 PM.

  4. #4
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Search on sheets depending on combobox value

    *** bump ***

  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: Search on sheets depending on combobox value

    Hi puuts

    How does the Code know that
    "BoE for this Month is not yet available.
    rather than
    popping message... blah blah blah
    Is it because Cell A1 of June is blank?

    What IS this message by the way
    popping message... blah blah blah
    ...what's it actually say???

  6. #6
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Search on sheets depending on combobox value

    Hi John, if D2 of Sheet is blank, it will pop-up a message "BoE for this month is not yet available.

    When i added your code to the line, it works only for the sheets with data, but if you choose the sheet(month) with blank data, and entered the task number, it will stuck in "You have entered an Invalid Task Number". I've attached the modified file.

    For Example: if i choose "June", and enter number in task number, it will display a message "BoE for this Month is not yet available".

    Also, i just want to pop-up a message "Select Month First" when they try to enter task number without selecting month.
    Attached Files Attached Files

  7. #7
    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: Search on sheets depending on combobox value

    Hi puuts

    I didn't look at your modified file...the Code in the attached is based on your original file...let me know of issues.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Search on sheets depending on combobox value

    That's what i looking for John! Perfect! Thank you so much!.. uhmm.. by the way could you please help me with my another thread?

    here's the link http://www.excelforum.com/excel-prog...41#post3151941

  9. #9
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Search on sheets depending on combobox value

    Hi John, what if the data source is in the other worksheet and not in the same worksheet of the userform? how can i set the worksheet to search it on that path?

    For example: the data source is save in "C:/Data Source.xlsx" <-- containing January - December sheets. When i run the userform, it will search in C:/Data Source.xlsx

  10. #10
    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: Search on sheets depending on combobox value

    Hi puuts

    As the Wiz would say "That's a horse of a different color" and, in my opinion, well beyond the scope of this Thread.

    Please start a new Thread for this issue...PM me with a link if you so choose and I'll look at it.

+ 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