Results 1 to 6 of 6

Use SQL queries in excel macro

Threaded View

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    25

    Use SQL queries in excel macro

    Hi,

    I am trying to create a macro to find the cities from an address in a cell. For that I have made a list of cities in another sheet of that workbook. Now I want the macro to go through each and every cell in the range of cities I have defined and find that in my given address and give me the output as the city name in cell next to the address if it finds a match. Now this will take a lot of time as the range of cities can be around 20,000. So can use any function to make it quicker or SQL query to make it run faster.

    Please refer to the attached file. I just want to know if it can be done or not. I can share more details if required and it seems possible.

    Thanks,
    Vibhor
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run Sql Queries in excel against database using Macro
    By Analabhatla in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2014, 10:14 PM
  2. Creating web queries through VBA/changing the URL by macro
    By davidman1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 07:31 AM
  3. Replies: 0
    Last Post: 01-21-2013, 12:47 PM
  4. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  5. Excel Web query - I can only get max. 9 queries from my macro
    By pfrattali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2010, 02:36 PM
  6. Macro to run multiple queries
    By asreid2527 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2009, 02:18 AM
  7. Macro to use Access queries
    By Masact in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2009, 03:35 PM
  8. help with a macro (web queries)
    By kestrel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2005, 08:30 AM

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