Consulting

Results 1 to 4 of 4

Thread: Excel chart in PowerPoint

  1. #1
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location

    Excel chart in PowerPoint

    Hello all, I have many charts in Excel that I link to Powerpoint. I set it to manual update so I can go in and do a activepresentation.refreshall or right click on the chart and go with update link option. However, my chart(object) resizes from time to time. It takes a long time to resize these charts to look good in ppt, is it an excel setting that i set or is there anything that i can do to prevent charts from resizing on update?

    thanks

  2. #2
    VBAX Contributor
    Joined
    Jun 2007
    Posts
    150
    Location
    The problem is that the objects you see in PowerPoint are NOT Excel Objects; they are Microsoft Office Objects. Therefore, each time you refresh, the Excel Object has to be translated.

    In my experience, the only way to reliably maintain Excel formatting when trasnfering to PowerPoint is to paste in the Worksheet/Chart object AS A PICTURE. Windows Metafile, to be specific.

    Just use 'Paste Special', and 'Enhanced Windows Metafile', as follows

    [VBA] 'Paste picture object into PowerPoint
    Set ppPic = ActSlide.Shapes.PasteSpecial(ppPasteEnhancedMetafile)

    'Adjust Picture position
    ppPic.Left = (ppp.SlideMaster.Width - ppPic.Width) / 2
    ppPic.Top = 84.75

    Set ppPic = Nothing[/VBA]

    Since you have been updating FROM PowerPoint, this may not be what you want. However, this is the only method that consistently works for me.

  3. #3
    VBAX Tutor
    Joined
    Dec 2008
    Posts
    244
    Location
    Thanks, but I have to many and these requires daily update. Anyone else have any other ideas?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Write a macro to copy it over.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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