+ Reply to Thread
Results 1 to 5 of 5

Exporting mulitple pages on a Worksheet to PowerPoint using VBA

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    10

    Exporting mulitple pages on a Worksheet to PowerPoint using VBA

    I'm currently trying to create a VBA-code that will let me copy multiple pages from an Excel-worksheet (set-up via Set Print Area) to a new PowerPoint presentation.
    Where every page from that one Excel-worksheet is one slide. I'm currently experimenting with this code:

    Please Login or Register  to view this content.
    Now the code only makes a picture of one unique range of every worksheet. I want a pictures of multiple pages from one specific worksheet.

    For Example, I need a PowerPoint slide of Worksheet1!, Range A1:P41, A42:P82, A83:P143, etc.

    Can someone help me out?

    Already thanks!
    Last edited by ruttiii; 06-05-2012 at 08:20 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Exporting mulitple pages on a Worksheet to PowerPoint using VBA

    Quote Originally Posted by ruttiii View Post
    For Example, I need a PowerPoint slide of Worksheet1!, Range A1:P41, A42:P82, A83:P143, etc.
    Just change the loop start to:
    Please Login or Register  to view this content.
    Last edited by Chippy; 06-05-2012 at 10:26 AM.
    Post responsibly. Search for excelforum.com

  3. #3
    Registered User
    Join Date
    03-15-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Exporting mulitple pages on a Worksheet to PowerPoint using VBA

    When I insert your code into mine, it says it misses an Next statement?

    Could you show me how your could should be implemented in mine?

    Thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Exporting mulitple pages on a Worksheet to PowerPoint using VBA

    Here is your code modified as required in the way I suggested:
    Please Login or Register  to view this content.
    This uses ActiveSheet, so just change that to the required sheet name, as shown in my first post.

  5. #5
    Registered User
    Join Date
    03-15-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Exporting mulitple pages on a Worksheet to PowerPoint using VBA

    Quote Originally Posted by Chippy View Post
    Here is your code modified as required in the way I suggested:
    This uses ActiveSheet, so just change that to the required sheet name, as shown in my first post.
    Extremely awesome, it's working like a charm! Thanks a thousand!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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