+ Reply to Thread
Results 1 to 3 of 3

Creating a table to accept Data Base data

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Creating a table to accept Data Base data

    OK - This title will definitely have to be changed. But I'm not sure to what.

    So...I have this workbook with a lot of proprietary data in it that summarizes open job orders, job orders that were gained during the previous week, assignments made, assignments ended, job orders closed....I think that's it. So the first sheet is a summary page that graphically shows all of this information. Each category (Open Orders, Assignments Made...etc) summarized on the summary page pull from a data sheet in the same workbook. So that all of the details can be seen about the data each data page also has a pivot table that was created on another sheet. There are hyperlinks all over the place so that folks can easily navigate.

    Here's my question:
    The data sheets were orginally fed by the copying of a report from a database and pasting it into the sheet. i then formatted the data into a table. The table is important at this point because all of the formulas on the summary page point to columns in the table. The data is now being pulled into the data sheets via a macro written to interogate our database for the information needed. The report will run every Monday. What I'm worried about is if the new week's information goes beyond the range of the "table" will the table expand with the data. When I would copy and paste the table would expand but I'm not so sure it's going to do it now. I tried formatting A1:N4000 as a table but the table always retracts to where the data stops.

    Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Creating a table to accept Data Base data

    Hi Cjax
    Are you using the new "Tables" implementation in Excel 2007?
    One of their characteristics is that they do expand intelligently as new data rows or columns are added.
    So the answer to your Q is Yes.
    barry

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Creating a table to accept Data Base data

    Hi Chris
    I had a "Table" issue several weeks ago but my issue was that table rows were being added when I didn't want them to add. I solved the issue with code like this...in the Worksheet Activate Event
    Please Login or Register  to view this content.
    In the code that does the copy/paste, redefine the table with code like
    Please Login or Register  to view this content.
    where
    Please Login or Register  to view this content.
    is the parameters of your Table and LR is the last row of the pasted data and where "A" in
    Please Login or Register  to view this content.
    is a column that will always be fully populated. In this code I was able to control where the table started and ended; perhaps this is an approach you can use to avoid
    What I'm worried about is if the new week's information goes beyond the range of the "table" will the table expand with the data.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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