+ Reply to Thread
Results 1 to 2 of 2

VBA code to search for cell within a spreadsheet

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    VBA code to search for cell within a spreadsheet

    Hi

    First time poster, so please be gentle with me.

    I come from a large family. There are about 100 of us. I want to prepare a full sheet along the lines of the attached. I would like to create a search engine behind a form which has three boxes, whereby the user puts their name in one box from column A, and then puts their relative's name from Row 2 in a second box. They then click on a button and their relationship crops up in a third box.

    I know that I have to name the range in Row 2, and also the range in column A, but that's where my knowledge ends. I know that there is some VBA code which will search for the relative cell when an entry from each range is entered in the respective box, but that is as much as I know. Can anyone help?
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: VBA code to search for cell within a spreadsheet

    Hi, take a look at the attached. Click on the button to open up the form, choose 2 names and their relationship will be displayed.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA - Search xls spreadsheet for specific data and move cell value up one position
    By qnmahan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2013, 05:55 PM
  2. [SOLVED] Code to search a cell, copy and paste
    By MDEN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 05:19 AM
  3. Replies: 7
    Last Post: 07-28-2011, 10:05 AM
  4. VBA code to search cell data in named sheets
    By Zimmerman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2010, 11:46 AM
  5. Code to search for the next cell with zero
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2008, 04:53 PM

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