+ Reply to Thread
Results 1 to 3 of 3

Pulling data from several tables into one sheet?

  1. #1
    Registered User
    Join Date
    12-01-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Pulling data from several tables into one sheet?

    Hi All,

    Need some help with this.

    I have a database which has historical tables within it and i want to be able to pull several different tables into one sheet.

    I need to know if there is vb code which can pull data with the same query against several different tables into one sheet in excel to then use as a data sheet for further manipulation in pivot tables?

    at the moment i am only able to pull back one table at a time and i have about 60 to do.

    Thanks for any help on this one.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Pulling data from several tables into one sheet?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Pulling data from several tables into one sheet?

    Make a union query in the source database and use one data extract in Excel.
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

+ 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