+ Reply to Thread
Results 1 to 2 of 2

Need to Copy Excel print_area page to PowerPoint with PrintTitleRows on each slide

  1. #1
    Registered User
    Join Date
    07-21-2015
    Location
    Utah
    MS-Off Ver
    2013
    Posts
    1

    Need to Copy Excel print_area page to PowerPoint with PrintTitleRows on each slide

    I am new to the forum and medium skilled at vba. I copied this code from another post and it works great. What I am looking for is to get the PrintTitleRows at the top of each "picture" on the slides.

    Here is what I have used for print but does not work for doing a picture copy to PowerPoint

    With ActiveSheet.PageSetup
    .PrintTitleRows = "$2:$5"
    end with

    Here is the code which works to create the slides without the titles:

    Sub Sheet_To_PowerPoint()
    'works great, just needs heading on each page

    Dim pp As Object
    Dim PPPres As Object
    Dim PPSlide As Object
    Dim SlideCount As Long
    Dim row As Long

    Set pp = CreateObject("PowerPoint.Application")
    Set PPPres = pp.Presentations.Add
    pp.Visible = True

    For row = 6 To ActiveSheet.UsedRange.Rows.Count Step 30

    ActiveSheet.Range("B" & row & ":s" & row + 30).CopyPicture Appearance:=xlScreen, Format:=xlPicture

    SlideCount = PPPres.Slides.Count
    Set PPSlide = PPPres.Slides.Add(SlideCount + 1, 12)
    PPSlide.Select

    ' PPSlide.Shapes.Paste.Select
    PPSlide.Shapes.PasteSpecial DataType:=ppPasteEnhancedMetafile
    pp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True
    pp.ActiveWindow.Selection.ShapeRange.Top = 1
    pp.ActiveWindow.Selection.ShapeRange.Left = 1
    pp.ActiveWindow.Selection.ShapeRange.Width = 700



    Next

    pp.Activate

    Set PPSlide = Nothing
    Set PPPres = Nothing
    Set pp = Nothing

    End Sub

  2. #2
    Valued Forum Contributor blane245's Avatar
    Join Date
    02-20-2009
    Location
    Melbourne, FL
    MS-Off Ver
    Excel 2010
    Posts
    649

    Re: Need to Copy Excel print_area page to PowerPoint with PrintTitleRows on each slide

    try changing the Appearance to xlPrinter and setting the PrintRange to the enter sheet. See if that works better.
    Bob
    Click my star if my answer helped you. Mark the thread as [SOLVED] if it has been.

+ 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] How to copy and paste 4 excel graphs into a single PowerPoint slide evenly?
    By Mirisage in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-07-2015, 12:47 AM
  2. Script to copy excel table in to a powerpoint slide
    By Robert110 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2014, 06:15 PM
  3. Copy and paste some charts from excel into specific slide on a powerpoint template
    By ones4rus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2013, 03:00 AM
  4. macro to copy paste excel name range to powerpoint new slide
    By koi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 04:55 PM
  5. [SOLVED] Copy Named charts in Excel to specific slide in Powerpoint
    By allstarrunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2012, 09:10 AM
  6. Copy Graphs and other Data into PowerPoint a slide at a time.
    By kpierce in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2011, 02:11 AM
  7. Copy Range from Excel to Powerpoint Slide
    By cricrazy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2009, 07:11 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