+ Reply to Thread
Results 1 to 5 of 5

Create a search engine in excel form

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Create a search engine in excel form

    Hi VBA gurus,

    I am very new to VBA and would like to ask experts out there how can I create a text box in the excel forms to allow users to search some information based on the text entered. It is similar to a search engine. The database that store the information is using MS SQL Server 2008 and I'm using excel 2007.

    Can anyone here share some sample code so that I can have something to kick-start with?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Create a search engine in excel form

    This would search on a sheet, if that helps any:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Create a search engine in excel form

    Hi John,

    May I know where can I put the SQL query? Is it inside one of the parameters?

    Thanks.
    Last edited by Cutter; 10-16-2012 at 12:15 PM. Reason: Removed whole post quote

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Create a search engine in excel form

    Unfortunately an SQL query is a bit out of my league. However, see if this helps:

    http://stackoverflow.com/questions/7...-a-spreadsheet

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Create a search engine in excel form

    Before we get into the VBA, have you tried parameter queries? http://msdn.microsoft.com/en-us/offi...ab_topic3.aspx

+ 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