+ Reply to Thread
Results 1 to 4 of 4

Copy range from multiple workbooks and past as image in PPT

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Question Copy range from multiple workbooks and past as image in PPT

    Hi all,

    From an Excel Master workbook I'm looking to copy the same range ("A3:AH34") from multiple excel workbooks (all have the same named worksheet, "NFR") and paste these each as an image (range includes graphs and cells populated with data, etc - i.e. the range is a dashboard view) into their own slide in a single PPT presentation starting at Slide 3 onwards. These other workbooks (8 in total) are located in different folders on a SharePoint site.

    The aim is to run this macro from Excel 2010 and paste the images into PPT 2010.

    An added bonus would be to include code to help centre/resize/scale the images to fit the PPT slide - I'm more than happy to play around with the sizing to ensure each image fits the slides accordingly.

    An additional added bonus would be the ability to stipulate the order of the PPT slides to suit.

    Anybody out there care to give this a try?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Copy range from multiple workbooks and past as image in PPT

    I won't give it a try since I don't have the pieces to play with. However, the attachment contains the information you need to do it.

    I suggest writing a program to bring the ranges into a single workbook and then use the table to put them on the PowerPoint spreadsheet.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Copy range from multiple workbooks and past as image in PPT

    Will the Presentation already exist?
    David
    (*) Reputation points appreciated.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Copy range from multiple workbooks and past as image in PPT

    The program depends on the existence of a "template" PowerPoint presentation. The template is actually a regular PowerPoint presentation with all the titles, text, etc. already filled in. What is left blank are the charts and ranges you want to add.

    The code takes the template and makes a copy of it with a date stamp and then fills in this copy.

    The code fills in the blanks with the definitions you give it on the Object Map page. The object map page tells the program what sheet to go in the workbook to find what you want to copy, what range or chart on the page to copy, whether it is a Range or Chart, what PowerPoint page to put it on, and how to position and size it on the page.

    The range can be a physical range as indicated in the example, or it can be a named range.

    The code also contains sample code to substitute text in the template or the footers.

    I am fond of using named ranges, the Control Panel sheet has several that are used in the code.

    You are sort of on your own as to code what text you'll need to substitute. However you should be able to use the parts of the code that put the charts and ranges on the PP sheets as is. All you'll need to do for that is fill out the object map.

    @Mad-Dog: I should mention, The part of the program that positions and sizes the objects is in inches. There are 72 pixels per inch in a PP slide. If I am doing my math correctly, there are 28.35 pixels in a cm. I think this means to use cm in the object map, change the 72 in this part of the code to 28.35.
    Please Login or Register  to view this content.

+ 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. Macro to copy past sheets from different workbooks
    By Andre2016 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2016, 10:27 AM
  2. Replies: 0
    Last Post: 03-03-2016, 10:18 AM
  3. [SOLVED] Code to copy and past information from many workbooks
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2015, 03:39 PM
  4. Replies: 1
    Last Post: 09-23-2014, 06:42 PM
  5. [SOLVED] Copy from single workbook and past to multiple workbooks
    By Alby22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2012, 04:40 PM
  6. copy selected range from multiple workbooks into multiple worksheets in one workbook
    By novak100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2012, 05:52 AM
  7. Copy data from a certain range and past multiple times.
    By Butehawk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-30-2010, 09:15 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