Closed Thread
Results 1 to 13 of 13

Creating Find Tool for Directory

  1. #1
    Registered User
    Join Date
    04-27-2008
    Posts
    4

    Red face Creating Find Tool for Directory

    Hi,

    I am new to this forum and realized that Excel- New users is for beginers only. I'm posting my question in programming section.

    I am preparing Vendors' Directory for our company. This Directory has different products listed in seperate sheets. The names, phone numbers and address of various vendors' are listed in each sheet.

    My problem is that I want to create a new sheet with a find tool that will search particular name of the product or the vendor from all the sheets (say product A, product B) and list out complete information in single page.

    I have attached a sample excel sheet which is supposed to search the name "Daniel" from sheets - Product A and Product B and list it out in the first sheet. The sample does not work.

    I would be glad if someone could find a solution for this.

    Johny
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    It's best when setting up tables that you do not include any blank rows such as you have between the header row & the data.

    I don't see why you don't have all the data on one sheet,then all you would need would be either AutoFilter or AdvancedFilter.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    isaacjohny

    Welcom to Exceltip forum

    Please take a couple of minutes and read the forum rules

    An Announcement thread that covers the rules is at the top of each forum or you may use the link below in my signature.

    Your duplicate thread in Excel - New Users has been deleted
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you are looking for a VBA solution then your problem will be that the string you are searching for is only part of the name.

  5. #5
    TestPoster
    Guest
    Try the attached!
    Attached Files Attached Files

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This code will find Daniel within the cells contents

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

  7. #7
    Registered User
    Join Date
    04-27-2008
    Posts
    4

    VBA solution to find and paste

    Hi Roy,

    Thanks for the reply. Firstly I want to apologise for the cross posting. Is it possible to delete a post if we realize that it has been posted in wrong forum?

    In this first visit to this website I found some few questions which were quite close to mine. I was wondering if there are any VBA solutions which could search the name (either supplier or product) string and if available copy and paste the entire row (containing details) with all similar names in a single page.

    Since I'm not that good in excel i would be glad if there is readily available solution. If its not that simple, would appreciate your guidance.

    Thanks,
    Johny

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try the example I have uploaded, it searches for the name.

  9. #9
    Registered User
    Join Date
    04-27-2008
    Posts
    4

    Thanks a Lot!

    Thanks a lot! Thats what I wanted

    Seems like a magic to layman like me.

    Thanks again!
    Johny

  10. #10
    Registered User
    Join Date
    04-27-2008
    Posts
    4

    Refinement of the Find Tool

    Hi Roy,

    Thanks for the VB program for find tool which was of great help. However there are few problems that i encountered while running it.

    Firstly, its caps sensitive, i.e. if I search daniel instead of Daniel it doesnt work

    Secondly it doesn't delete the items of old search, i.e if we search 'Daniel' first and 'Holford' next, the items of Daniel search still remains. Is there a way to reset that area or delete the old items before pasting newly searched items?

    Thirdly this program copies the colour filled in that particular cells as well when it pastes in front sheet. Is there a way to paste only text in the cells and not the colour filled in that cell?

    I tried a lot but in vain. Would you have a easy solution for this as well.

    Thanks for everything.

    Johny

  11. #11
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This will fix the case sensitive & clear old search items part of the problems
    I do not have time at the moment to help with the pasting format problem

    Replace existing code with this code
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    05-26-2008
    Posts
    122
    hey guys.. im trying to do something similar.. is it possible to make the search results include partial matches.. so say if i search for "jo" it would return john and joe ?? thanks for the help

  13. #13
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    manny_cb

    Please take a couple of minutes and read the Forum Rules & start your own thread - Rule 2

    Closing this thread

Closed 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