+ Reply to Thread
Results 1 to 5 of 5

Resize copied Chart from Excel to Power Point

  1. #1
    Registered User
    Join Date
    09-16-2014
    Location
    frankfurt am Main
    MS-Off Ver
    2010
    Posts
    2

    Resize copied Chart from Excel to Power Point

    Dear All,

    I would like to set up a Macro in PPT.

    The idea is to Paste my allready copied Charts from xls to PPt in a particular size and Place.
    Does anybody have an idea how this could work?

    Many thanks in advance

    Laura

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Resize copied Chart from Excel to Power Point

    I used this sloppy macro for a bit when I had to copy and paste my way to success for a TON of powerpoints.

    Sub PasteTable()

    Dim myShape As Object
    'paste excel table as enhanced metafile, then resize to full width

    ActiveWindow.View.PasteSpecial DataType:=ppPasteEnhancedMetafile
    Set myShape = ActiveWindow.Selection.ShapeRange(1)
    With myShape
    .LockAspectRatio = True
    .Top = 80 'points from top
    .Left = 10 'points from left
    .Width = 700 'points wide
    End With
    End Sub
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    09-16-2014
    Location
    frankfurt am Main
    MS-Off Ver
    2010
    Posts
    2

    Re: Resize copied Chart from Excel to Power Point

    Great! thank you. It works very well!
    Do You know if there is an opertunity to put the macro in a Button like in xls. so that I push the Button and the macro runs automaticly?

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Resize copied Chart from Excel to Power Point

    So you can do a few things. You can assign a hot key to it.
    What I did was insert the code in a new power point file and called it "personal macro" I then assigned that specific macro to the quick buttons at the top of screen so I could have the file open and hit alt-4 and it would run.

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Resize copied Chart from Excel to Power Point

    So with it assigned as a hot key or on the top quick access bar, you have to have that file open. So I'd either run a macro to open the two ppt files or just open it manually to then copy and paste with the shortcut

+ 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. Export power View to Power Point
    By Trinhhai in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-09-2014, 05:32 AM
  2. Power Point Chart linked to Excel Chart
    By pr4t3ek in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 09-24-2009, 11:33 AM
  3. Power Point to Excel
    By fretwizard in forum Excel General
    Replies: 3
    Last Post: 04-07-2009, 05:20 AM
  4. how to turn of a series in data sheet of a power point chart using macro
    By chepyalarr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2006, 03:10 PM
  5. Excel VBA with power point?
    By Malcom Jazz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2005, 05:01 AM

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