+ Reply to Thread
Results 1 to 24 of 24

using Combobox to select a customer which will pull all data from different work sheet.

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    using Combobox to select a customer which will pull all data from different work sheet.

    Hi,

    I am looking to build a userform in which i have a combobox, this will let me select the customer i want and when pressing ok will get data from the same sheet regarding the customer and putting it on to my report worksheet.

    Regards,
    James

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Hi Sixth,

    So in the before worksheet i have all the source data but this has not been filtered. what i want to do is go into the after worksheet press a button which will open a user form, and i can select which company press ok and will pull the relevant data which i have labelled, leave completeness as i will do that after.

    Report.xls
    Last edited by jashton154; 10-16-2013 at 05:44 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Thanks for the file.

    Instead of going for a combo box in userform approach why don’t you keep a cell for selecting the cells? Just use a Validation List for that cell so that you can select the company names from the cell list?

  5. #5
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Whatever you feel is going to work better, would you be able to do this and show me an example ?

  6. #6
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Sixth,

    That sheet is an example there will be 200 plus companies involved
    Also I will need to be told how to put it into the real excel workbook

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Please add some company names and the Userform with list and expected output for one company in a sheet. and attach the file So that I can able to proceed further…

  8. #8
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Sixth,

    If you look in After worksheet you will find the end product, so i want to be able to select a company from the before sheet either via userform or just a combobox, and when selected the data for that company to be pulled out as shown in after sheet.

    Report after.xls

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Refer the attached file for details... Just open the workbook and Press Alt+F8 and Select ShowUserform and run the code...

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Sixth,

    Thats perfect mate, the only thing is now how do i copy and paste the company name into all relevant lines as i have like 200 companies.

  11. #11
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    also how do i add people to the list.

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Quote Originally Posted by jashton154 View Post
    also how do i add people to the list.
    It will auto adjust based on the formula used in the sheet1 and which is referred to named range CompanyNameList and the named range is referred in combo box rowsource. So no need to worry about it since it is an automated process...

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Quote Originally Posted by jashton154 View Post
    how do i copy and paste the company name into all relevant lines
    Refer the below links to know how...

    http://www.contextures.com/xlDataEntry02.html

    http://www.extendoffice.com/document...lue-above.html

  14. #14
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Thanks Mate,

    Im adding data into the before sheet but not coming up in the user form or sheet 1 im adding them after poppy ltd so they will be 5th company

  15. #15
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Just extend the range of the Sheet1 A2 cell formula since I have referred it to the used range of Column-A of Before sheet...

  16. #16
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    sorry about this mate, doesnt seem to work for me would you be able to send a formula? my last row is A2487

  17. #17
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    It is an array formula so after extending the $A$152 to $A$2487 you have to enter it with - CTRL+SHIFT+ENTER

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

  18. #18
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Thanks mate, in the userform list i am only getting the 100 rows you put in but i have 100+ so in the drop down only showing 100

  19. #19
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Just extend the sheet1 column A formula to 100+++ rows

  20. #20
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    i have but its not showing them after 100 in the list on the userform.

  21. #21
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Check whether is there any number of line items settings in combobox property, since I am in travelling without access to system so unable to check it. Giving reply from mobile device. Possibly I will look it by tomorrow that is after 12 hours.

  22. #22
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    rowsource is companylist would i have to update that?

  23. #23
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: using Combobox to select a customer which will pull all data from different work sheet

    No boss dont touch tat property...

    See something like display number of line items property like that...

  24. #24
    Registered User
    Join Date
    10-15-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: using Combobox to select a customer which will pull all data from different work sheet

    Sixth,

    i still can not find the solution where the userform shows more than 100 companies. this is my new file.

    Regards,
    James

    Report after_Userform With Code1.xlsm

+ 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] Pull data within the work sheet and save as master sheet.
    By ExcelUser2707 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-01-2013, 03:43 AM
  2. Pull data from another sheet using a Combobox
    By yagapapa in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-05-2013, 09:59 AM
  3. Need to pull data from another work sheet
    By bkass in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2012, 02:55 PM
  4. Using a combobox to select sheet where data is to be copied from a userform
    By Ceeseven in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2009, 02:09 PM
  5. Replies: 1
    Last Post: 07-07-2006, 02:10 PM

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