+ Reply to Thread
Results 1 to 2 of 2

Excel vba to powerpoint

  1. #1
    Registered User
    Join Date
    02-06-2018
    Location
    ATLANTA, US
    MS-Off Ver
    Microsoft 365 for Enterprise
    Posts
    11

    Unhappy Excel vba to powerpoint

    Hi. I am running a macro from excel that will paste one powerpoint to another. I got it to paste, but it does not paste with the source formatting. Does anyone know how to do that?

    Set pres1 = pp.Presentations.Open(LocationPath & "\Example.pptx")
    Set pres2 = pp.Presentations.Add

    pres1.Slides(1).Copy
    pres2.Slides.Paste pres2.Slides.Count + 1

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Excel vba to powerpoint

    you will probably have to assign your slides to objects first

    then
    'Bring over slides design
    New_sld.Design = Old_sld.Design

    'Bring over slides custom color formatting
    New_sld.ColorScheme = Old_sld.ColorScheme
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

+ 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. [SOLVED] copy past table from excel to powerpoint - keep powerpoint formatting
    By djc225 in forum PowerPoint Formatting & General
    Replies: 2
    Last Post: 10-30-2018, 11:32 AM
  2. Replies: 0
    Last Post: 08-23-2016, 09:43 AM
  3. Replies: 1
    Last Post: 06-09-2016, 12:05 PM
  4. Replies: 6
    Last Post: 08-18-2015, 06:39 AM
  5. Excel/PowerPoint VBA teaser: How to change data labels in PowerPoint chart by VBA?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2015, 11:47 AM
  6. VBA Transfer Range from Excel to Powerpoint (New or Existing Powerpoint Presentation)
    By ThePeoplesClub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2014, 02:52 PM
  7. Replies: 13
    Last Post: 01-11-2013, 04:46 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