+ Reply to Thread
Results 1 to 8 of 8

Search and display

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Search and display

    Hi my first post and thank you for welcoming me onto your site ok here goes...
    I have a cell H10 for instance where i enter the surname of my client
    i would like a macro to get the info fron this cell and search down colum b10 onwards locate the surname and display the full line the selected surname is on, pretty basic for someone but its stumped me for weeks..

    Hope you can help Speak soon Steve

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search and display

    It will be good if you attach a sample file.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Search and display

    HI ARLETTE
    Unfortunatley i cant give customers surnames in a file sorry also our firewall her wont allow up to upload files.
    alls it is i want to enter a name eg Smith and i want a macro to search A colum of surnames say b colum and goto the line with the details on

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Search and display

    But there are chances that many people can have the same surname. What do you do in that case?

  5. #5
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Search and display

    Sorry you can tell I'm new yes I understand we also place a unique ref at end of name hope this helps sorry for being vague

  6. #6
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Search and display

    I place the customers postcode at the end of there surname so I need a macro to work to get the details I enter into the cell and search the colum for corresponding wording and goto that line to save me scrolling down a very long list I could use auto filter but I want to have a macro so I can attach it to a button for ease as some staff arnt IT savey hope this helps

  7. #7
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Search and display

    Hi

    Try this:

    ste67.xlsm
    Click *, if my suggestion helps you. Have a good day!!

  8. #8
    Registered User
    Join Date
    05-18-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: Search and display

    Jraj1106 thats brill but i need it to bring the sheet down so the line is displayed near the top so when i have 10000 entries after clicking macro the line with the data on will show and i wont have to scroll down but loving the response thanks

+ 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