+ Reply to Thread
Results 1 to 10 of 10

Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

  1. #1
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    I need a macro that can extract tables from the attached spreadsheet (sheet name is “sample”) and create multiple tabs with Tab names as the first element of the table and copy the individual tables to separate worksheets as shown in the attached workbook. The first elements from the tables are Table1, Table2, Table3 and Table4.

    Please note that in the actual spreadsheet the amount of table are not known. It could be up to 50 tables arranged in no particular order except spaces between the table (I think CurrentRegion should work but not sure) Is this possible?

    I was using this line of code in red to select all the regions that I need:

    Please Login or Register  to view this content.
    Once this has been achieved can it export the contents of the various tabs except the “sample” tab to a PowerPoint if possible?
    Thank you so much for the help.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    Any ideas please?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    You should be able to get the areas like this
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    Thanks Jindon, how can I move the areas to other tabs in the spreadsheet individually?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    If you want to copy/cut
    Please Login or Register  to view this content.
    ?

  6. #6
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    Perfect! Thanks a lot Jindon, one more thing, how can I move the copied areas to PowerPoint slides? Is that possible?

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    I don't use PP, so ask someone else.

  8. #8
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    Thanks a lot Jindon....your help has saved me hours at work. You are awesome !!!

  9. #9
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    Jindon, I noticed that in my spreadsheet, sometimes the line
    Please Login or Register  to view this content.
    returns same address multiple times for a range that has spaces in them. Lets say they area (From cell A2 to B14 in the attached spreadsheet) has some spaces in ColumnB, it returns $A$2:$B$14 several time until all the spaces are counted. Is there a way I can modify the code to use System.Collections to collect the areas (so that it won't repeat an area that is already reported) and then dump them out on whatever sheet I want.
    Thanks for your help
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    136

    Re: Extract Table from a Spreadsheet, arrange in various tabs and export to PowerPoint

    I was able to finally modify your code to be able get it right as you suggested. Thanks for your time. I will mark this thread as solved now

+ 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. 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
  2. Extract Data from Powerpoint Table to Excel
    By nouri31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 10:10 AM
  3. export range from multiple tabs to new powerpoint
    By Caroaul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2012, 11:59 AM
  4. Export from SQL Table to Worksheet Tabs
    By akhlaq768 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2009, 09:58 AM
  5. Help: Create Pivot Table from multiple tabs in a Spreadsheet
    By AUDIOBLASTER in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2007, 12:30 PM

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