Consulting

Results 1 to 2 of 2

Thread: Search Functionality that moves cursor

  1. #1
    VBAX Regular
    Joined
    Jul 2009
    Posts
    26
    Location

    Search Functionality that moves cursor

    I have a fairly simple excel workbook with a list of names. I am trying to accomplish the following, and was hoping some of you would be able to provide a Non-VBA solution (if it's even possible).

    1) In Cell C1 I want to input a letter or a name.
    2) By pressing enter or by clicking on a button, the cursor will move itself to the cell in Column F where the first instance of the first letter of what I typed in C1 appears.

    So, for example I entered a search for "Mary" which obviously starts with the letter "M." After pressing enter or a button, my cursor would move to cell F18 since "Miguel" is the only name in that column that begins with the letter "M"

    Another example is if i searched for "Charlie" In this case, i would hope that my cursor actually moves to cell F4 where "Christoper" appears first.

    As always I appreciate everyone's insight into my really oddball excel/vba questions.

    Thanks!

    Goobers
    Attached Files Attached Files

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    It's not possible without VBA, you'll have to have two FINDs one where it searches for the entire string and if not found find the first instance where the cell contents match the first letter.

    For an example where you use a userform for something like your are trying to do go here http://www.thecodecage.com/forumz/gsearch.php and enter "databaseform.xls" and choose the very first match (after the obligatory google ad suggestions for your search).
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •