+ Reply to Thread
Results 1 to 3 of 3

Best way to store a table of data in a VBA Powerpoint add-in

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Exceland
    MS-Off Ver
    Excel 2010
    Posts
    24

    Best way to store a table of data in a VBA Powerpoint add-in

    Hi all,

    For a powerpoint add-in I'm creating, the code draws upon a set of data (to be more specific, 3 columns times 30 rows of integers). I currently have these data stored in a local Excel file, and every time the Powerpoint add-in is executed, the code opens up excel in the background, and retrieves the data from the excel file for the code to operate.

    The problem here is that opening the excel application in the background takes time, and so the first time the user executes the macro, there is a 5 second delay or so. I'm hence looking for a better way to store these data that the code draws upon. Note that I'll need to include this data as part of the add-in file to be distributed (so a single .ppam file). Any suggestions?

    I have thought about including the data in a table in the powerpoint file, but unfortunately ppam does not save slides, and so this won't work. I have also heard references to leveraging XML, but am unclear as to how to do that, so any guidance would be greatly appreciated.

    Thank you!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Best way to store a table of data in a VBA Powerpoint add-in

    Hi,
    Maybe using a simple text or comma delimited file? Fast to ready and easier to build then XML if you have simple data.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Exceland
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Best way to store a table of data in a VBA Powerpoint add-in

    Thanks GC Excel. Can you elaborate a bit more on how to do that? Three questions specifically:

    1. How to integrate this text or comma delimited file into the ppam?
    2. How to store and reference data in the text file given the row & column current format?
    3. How to store and reference data in the comma delimited file?

+ 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. How to autofit powerpoint table data
    By valgo54 in forum PowerPoint Formatting & General
    Replies: 2
    Last Post: 08-27-2013, 11:11 AM
  2. Extract data from Excel table in PowerPoint
    By gshockxc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2013, 05:51 PM
  3. Replies: 2
    Last Post: 06-16-2013, 02:58 PM
  4. Store data in table using double quotes
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2012, 09:59 AM
  5. [SOLVED] How to store Metadata in the PowerPoint Presentation (2000, XP, 2003)
    By msnews.microsoft.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2005, 03:10 PM

Tags for this Thread

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