+ Reply to Thread
Results 1 to 4 of 4

VBA code - Search box function - return value/text not location

  1. #1
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    VBA code - Search box function - return value/text not location

    Hi all,

    I need help with a code for a search box function, that returns the information recorded in a cell for example, "Barcelona" or "London" etc), instead of the location of the cells.

    I will need to narrow it down to search only the information in the following columns:

    Sheet2
    I2:J10932

    I am totally new to VBA coding and have stumbled my way through a few things, but everything I have searched for so far has had at least one error when transposing to Excel.

    I am running Excel 2007.

    Thanks in advance!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,667

    Re: VBA code - Search box function - return value/text not location

    Whether the search should be whole cell match or part of the text?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA code - Search box function - return value/text not location

    Search will be of keywords so part of the text please!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,667

    Re: VBA code - Search box function - return value/text not location

    Code will run based on the input value mentioned in a1 cell. Change the Range("A1") to your desired cell in the below code.

    Please Login or Register  to view this content.

+ 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. [SOLVED] Search for Text and Return Cell Location
    By olives in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2013, 07:53 PM
  2. Code that works in one location but not another location. (AdvancedFilter excel function)
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2013, 02:18 PM
  3. Replies: 3
    Last Post: 07-27-2011, 02:29 PM
  4. Replies: 1
    Last Post: 02-22-2010, 05:25 PM
  5. VBA Code to Return Text Embeded in the VLOOKUP Function
    By Magnivy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-30-2006, 02:35 AM

Tags for this Thread

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