Results 1 to 3 of 3

Thread: Copy Range into Powerpoint

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    6
    Rep Power
    0

    Lightbulb Copy Range into Powerpoint

    HI - I'm a newbie to VBA, The code above is very useful. But I get an error in

    Copy_Paste_to_PowerPoint ppApp, ppSlide, Sheet1, Sheet1.ChartObjects(1).Chart, xl_Bitmap

    Error message is

    Run time error 1004
    Method 'ChartObjects' of object'_'worksheet' failed.


    Also I have the following questions to ask
    1. Do I have to use both the subroutines
    2. If I use only the top one "Sub Copy_Paste_to_PowerPoint() " , the macro still works and allows me to copy the excel - but not from the range I wanted to copy.

    Ref: Copy/Paste Excel Range/Chart into Powerpoint VBA

    Kindly advise.
    Last edited by Admin; 07-31-2013 at 09:51 PM.

  2. #2
    Junior Member
    Join Date
    Jul 2013
    Posts
    6
    Rep Power
    0
    Also forgot to mention that I'm using office 2007.

  3. #3
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    If you want to copy a range, use

    Copy_Paste_to_PowerPoint ppApp, ppSlide, Sheet1, Sheet1.Range("A1:K50"), xl_Bitmap

    And yes, you have to use both the subs.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Similar Threads

  1. Copy/Paste Excel Range/Chart into Powerpoint VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 1
    Last Post: 03-13-2014, 02:59 PM
  2. Replies: 10
    Last Post: 06-20-2013, 12:21 AM
  3. Replies: 3
    Last Post: 05-14-2013, 03:25 PM
  4. Copy Table Range Till Last Row Using VBA
    By ivandgreat in forum Excel Help
    Replies: 2
    Last Post: 05-09-2013, 05:41 PM
  5. Trapping Copy To Range Before Copy/Cut Paste
    By Rasm in forum Excel Help
    Replies: 4
    Last Post: 04-07-2011, 07:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •