+ Reply to Thread
Results 1 to 3 of 3

Seeking Input through userform and searching the spreadsheet for corresponding entry

  1. #1
    Registered User
    Join Date
    09-09-2010
    Location
    Philadelphia PA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Seeking Input through userform and searching the spreadsheet for corresponding entry

    Hi,

    I have been an avid excel user but entering the world of VBA just now out of necessity. I am trying to design a GUI where user selects a string from the "combobox" and enters some value in the "text box" below it.

    Now I want to write a code to search for the entered text and entries related to that and publish the result in a new spreadsheet.


    which commands/technique should I use for this task?

    Please let me know if you could help. I can send a sample excel sheet if required.

    Thanks,
    Himanshu

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Seeking Input through userform and searching the spreadsheet for corresponding en

    The information you have provided is a bit vague. What does the combobox do? Likely, you will need to use the FIND method. Some info can be found at this link http://www.ozgrid.com/VBA/find-method.htm

    If you need more specific help, perhaps post a sample workbook with additional details.

  3. #3
    Registered User
    Join Date
    09-09-2010
    Location
    Philadelphia PA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Seeking Input through userform and searching the spreadsheet for corresponding en

    Thanks for your input.. but I don't know how to attach a sample sheet here.
    However, I'll try to explain what I am trying to accomplish.

    I have a listbox (lbProducts) with a list of products and a set of 10 textboxes (txtProduct1 to txtProduct10) There is a CommandButton (btnSelect) in between listbox and textboxes.

    So, when the user clicks on an object in listbox and clicks on "btnSelect", the select object is copied to next available textbox, starting from txtProduct1.

    In short I want to allow user to select upto 10 objects from listbox and copy them to txtProduct 1 to txtProduct 10.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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