+ Reply to Thread
Results 1 to 8 of 8

Developing part database, need to know how to search from command button

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Developing part database, need to know how to search from command button

    Hi All,
    First post, excellent forum.

    I am developing a spread sheet that has a lot of part numbers with stores location attached to them, I would like use the find function in excel but I don't want to use a separate dialogue box. eg If I enter any text in cell A1 then click a command button. The code in the button will work exactly like the excel find/next feature and search the entire sheet and select the cell with the found text. the reason for not using the excel find feature is that the sheet will be used on a touch screen with a on screen key board and if I use the standard find feature , there maybe confusion when people open the dialogue boxes out of sequence.

    Or it maybe easier to search the workbook and display the whole row data at the top of the sheet in a blank row.

    I hope I have explained OK.

    Is this possible?

    Thanks in advance

    Dan

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Developing part database, need to know how to search from command button

    Hi creekybones,

    I think it would be a very good idea if you could provide us with a sample WorkBook, stripped of sensitive data, for us to have a look at, to see where we can help you with your Code.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    09-15-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Developing part database, need to know how to search from command button

    Hi Winon
    Thanks for the quick reply,

    Attached is a stripped down copy of the file.

    Thanks for your help.Store Data.xlsmStore Data.xlsm

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Developing part database, need to know how to search from command button

    Hello again creekybones,

    I trust that you will find the attached WorkBook doing what you have asked for.

    Also see the "Please consider" notes at the bottom of this Post.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-15-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Developing part database, need to know how to search from command button

    Hi Winon,
    Thanks for your help, Works fine. Maybe a cheek, But can the search be modified to search multiple columns, text and numbers? I need this to work exactly like the standard Excel search feature. Or is that not possible?

    Thanks Again.

    Dan

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Developing part database, need to know how to search from command button

    Hi Dan,

    What you are asking for would, in my opinion, be a mammoth task. If you need it to work exactly like the standard Excel search feature, then maybe you should stick to what you originally had.

    Sorry, but I cannot duplicate the standard Excel search feature with VBA. That would be like re-inventing the wheel whilst it is available, if you understand what I am saying.

    As a matter of interest, why would you want to search for something, anywhere else, while it is in a specific location ?

  7. #7
    Registered User
    Join Date
    09-15-2012
    Location
    London,England
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Developing part database, need to know how to search from command button

    Hi Winon.
    Thanks for the reply. I agree with what you have said. The only reason I ask is due to the guys searching for the part locations may not have a part number so may just search for a description or make etc to find the part.

    Anyway thanks for your help. It has been a steep learning curve for me and this forum has helped a lot.

    Thanks

    Dan

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Developing part database, need to know how to search from command button

    Glad I could help in some way.

    BTW the standard Excel search feature will not be able to handle a multiple search for the part locations or a part number or a description or make etc to find the part. The standard Excel search feature only searches for the "EXACT DATA" that is entered.



    Please remember to mark your thread as Solved if you are satisfied with the help received.
    Last edited by Winon; 09-15-2012 at 12:23 PM.

+ 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