+ Reply to Thread
Results 1 to 8 of 8

Search and Display in another sheet Using VBA and userform

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    City
    MS-Off Ver
    2010
    Posts
    13

    Search and Display in another sheet Using VBA and userform

    Hello

    I could not find the solution to specific problem I have.

    So i have the huge database

    Serial no. Name Address Employer Manager Group Qualification Yes/No

    I basically want to build this setup

    1. user enter the serial number,
    2. check for serial number
    3. Search through the database
    4.Display all the columns in different sheet with specific format.

    I fairly new to VBA and trying to figure this out. Hopefully any of you can provide a great insight or a sample solution

    Thank you

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Search and Display in another sheet Using VBA and userform

    Hi Simar,

    could you provide an example workbook including the original data table and how the result should look like?

    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    City
    MS-Off Ver
    2010
    Posts
    13

    Re: Search and Display in another sheet Using VBA and userform

    Quote Originally Posted by tehneXus View Post
    Hi Simar,

    could you provide an example workbook including the original data table and how the result should look like?

    Regards
    Hello tehneXus

    Here is the example database and i have put the result in sheet 2.
    Thank you for looking into it.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Search and Display in another sheet Using VBA and userform

    Hi,

    check "Sheet2" here: example.xlsm

    Regards
    Last edited by tehneXus; 04-18-2013 at 07:43 PM.

  5. #5
    Registered User
    Join Date
    04-16-2013
    Location
    City
    MS-Off Ver
    2010
    Posts
    13

    Re: Search and Display in another sheet Using VBA and userform

    Perfect. Thank you

    As code works very well. can you please kindly explain the code as I am having hard time understanding it. especially where you find records and paste it in the sheet.

    Thank you
    Last edited by Simar; 04-22-2013 at 11:49 AM.

  6. #6
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Search and Display in another sheet Using VBA and userform

    Hi,

    please find attached the file including detailed explanation of the code.

    example.xlsm

    Regards

  7. #7
    Registered User
    Join Date
    04-16-2013
    Location
    City
    MS-Off Ver
    2010
    Posts
    13

    Re: Search and Display in another sheet Using VBA and userform

    Thank you.

    Lets say There is another column which shows Manager's Serial number
    and Person enters a serial number which is of Manager's
    is it possible to see a all the data of the Manager and persons underneath that Manager?
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Search and Display in another sheet Using VBA and userform

    Hi,
    Lets say There is another column which shows Manager's Serial number
    please list --> ALL <-- the things you want the macro to do at once. I am glad to help you but I am not a big fan of never ending stories where each time one problem is solved ppl come up with other things which require the code to be rewritten ...

    Generally, yes it is possible.

    Regards

+ 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