+ Reply to Thread
Results 1 to 13 of 13

Search using combo box

  1. #1
    Registered User
    Join Date
    09-23-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Search using combo box

    Hi

    Please help.

    I have a worksheet with List from sharepoint,I need to populate the data in another worksheet using combo box and using the same column that are in the list.

    I have attached the spreadsheet for the ref.

    Thanks

    Sohil
    Attached Files Attached Files
    Last edited by sohil123; 09-25-2009 at 05:59 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Search using combo box

    hi sohil123
    Try
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    09-23-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Search using combo box

    Thanks Pike

    Nice one,
    But i want static data not a list again,also when i change the office combo from office 1 to office 2 then the data below the header in sheet1 must change to the data from office 2 from the list.

    Hope i explain correctly

    Thanks

    Sohil

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Search using combo box

    I think this is it
    Please Login or Register  to view this content.
    catcha tomorrow

    ps... run the macro from a commandbutton

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Search using combo box

    How did the changes go

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Search using combo box

    I can't really see why you need VBA to do this. You can simply use AutoFilter on the main list. If it si for printing then Excel will only print the visible rows
    Last edited by royUK; 09-24-2009 at 07:06 AM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Search using combo box

    This code seems to work
    Please Login or Register  to view this content.

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Search using combo box

    Valid point RoyUK .. do you really need to copy data to another sheet

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Search using combo box

    Quote Originally Posted by pike View Post
    Valid point RoyUK .. do you really need to copy data to another sheet
    It always amazes me how users turn to VBA ignoring basic Excel functions.

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Search using combo box

    wow ... great script RoyUK
    very crisp

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Search using combo box

    Thanks Pike

  12. #12
    Registered User
    Join Date
    09-23-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Search using combo box

    Thanks RoyUk and Pike

  13. #13
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Search using combo box

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

    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

+ 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