+ Reply to Thread
Results 1 to 2 of 2

Excel Automation: Updating Pivot Tables, Charts, and Tables

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Pittsburgh
    MS-Off Ver
    Office 2013
    Posts
    3

    Excel Automation: Updating Pivot Tables, Charts, and Tables

    At my work, we have an Excel spreadsheet that gets updated monthly and sent out to the company. This spreadsheet contains upwards of 5 years of data, with ~500-600 orders per month. Every month, the newest month's raw data is added to the spreadsheet, then various Pivot Tables in the workbook are refreshed, a table full of formulas is expanded into a new column so that the formulas can run on the new data, a different worksheet of formulas is expanded for the new data, and finally a set of "dashboard graphs" is updated based on these final formulas to reflect the new data. All of this is currently done manually, and depending on the month it can be a many-hour process.

    I've been tasked with automating this process so that, instead of monthly, the process can be run whenever somebody wants it run. I currently have a macro to import the raw data directly from the database we use. Now I'm struggling with updating the formula tables, pivot tables, and charts to automatically incorporate the new data. All the macros that I'm capable of writing or recording at some point require knowing exactly what cells formulas are being applied to, and since the spreadsheet is ever-expanding that column will change every month.

    I'm sorry I can't be more specific, but I'm feeling pretty overwhelmed by the task, to the point where I don't even feel confident I know what questions to even be looking for answers to. Any help that the community can give me on the topic would be greatly appreciated, even if it's just where and how to focus my thinking. Thanks for your help!

  2. #2
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Ontario Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Excel Automation: Updating Pivot Tables, Charts, and Tables

    Hey so it would help if you could be a bit more specific.
    But you can get the last row of a column like so:
    Please Login or Register  to view this content.
    Where the 1 represents the column number.
    Then you can use that to reference the last cell of that range with something like Cells(lngRow,1) or Range(Cells(1,1),Cells(lngRow,1))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Exporting multiple Pivot Tables and Charts in Excel 2007
    By deltaquattro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2011, 04:05 AM
  2. Excel 07: Pivot Tables/Updating Column Header Names
    By fizzziks in forum Excel General
    Replies: 1
    Last Post: 03-19-2010, 09:41 AM
  3. [SOLVED] Excel Charts from pivot tables without scroll down bar?
    By Angel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-18-2006, 09:40 AM
  4. Excel Pivot tables and charts
    By Pauleze in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-01-2006, 03:35 PM
  5. Replies: 0
    Last Post: 01-19-2005, 06:34 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