+ Reply to Thread
Results 1 to 3 of 3

Using MS Query to run Query on Worksheet in the same Workbook

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Using MS Query to run Query on Worksheet in the same Workbook

    I would like to know if it is possible through VBA to write a Microsoft Query on a Worksheet and return the results into a Worksheet in the same Workbook?

    If so what is the syntax for doing this?


    As always any help is greatly appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Using MS Query to run Query on Worksheet in the same worksheet

    See the QueryMaster example at Debra Dalgleish's website:
    http://www.contextures.com/excelfiles.html#External

    It has examples of queries against various data sources
    (Oracle, MS Access, ....and an Excel Named Range).
    NOTE: That file DOES have macros. They only run the queries.

    Is that something you can work with?
    (Post back if you have questions)
    Last edited by Ron Coderre; 12-15-2008 at 07:20 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67
    Ron,
    thank you this just might work

+ 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