+ Reply to Thread
Results 1 to 5 of 5

Searching data and displaying using a form.

  1. #1
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Cool Searching data and displaying using a form.

    Hello Everyone

    Not been on here in a while.

    I have a sheet with a large amount of data. I want to be able to use a user form to search through the sheet for specific data i.e. somewhere in the sheet 12345 is written (only once), whatever the user searches for, if the data is found, then I need the first five columns (40cells deep) bellow the point where that data is to be copied and pasted onto a new sheet, that sheet must then be displayed.

    Example: If 12345 was in A10 then Cells A10:E50 would be cpoied and pasted onto a new sheet.

    Does that Make sense.

    Any help would be sooo good as this is pretty tricky.

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Tricky One. Searching data and displaying using a form.

    Perhaps this will start you off:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Re: Searching data and displaying using a form.

    thanks.

    I have created a command button on the userform and put this code to it but when it is clicked nothing seems to happen? Any ideas?

    Also the code must search for whatever the user types into the text box, not just 12345.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Searching data and displaying using a form.

    Hence my comment:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    220

    Re: Searching data and displaying using a form.

    Dont worry, i have used this now

    Please Login or Register  to view this content.
    However I need to stop if from searching and pasting if the text box is left empty and the button clicked. This bit of code doesnt seem to do it

    Please Login or Register  to view this content.
    Where have I gone wrong?

+ 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