Consulting

Results 1 to 5 of 5

Thread: VBA Excel Chart to PowerPoint

  1. #1

    VBA Excel Chart to PowerPoint

    Using the VBA Express help number below, I was able to get MS Excel charts to auto-publish to a PowerPoint...it is awesome!!

    /kb/getarticle.php?kb_id=370

    However, when they come over as images (taken from chart objects) they are missing the seconday Y-axis to the right of the charts.

    Any ideas why this is happening and what I can do to fix it?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Can you post your workbook with code?
    ____________________________________________
    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

  3. #3
    I added a portion of the code module with the chart itself being created and then the call to the mod to Power Point script that I got from this site.

    So the chart is created and it works great...except for the second 'Y' axis.

    This help?
    Attached Files Attached Files

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    It would be helpful to have some data, and the missing code which will allow the code to run.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5

    Simple Fix

    It was a work assignment and I had a lot of things in there I didn't want to clean up...soory for the partial post.

    Fixed...as it turns out, the chart region was just too big. By adjusting the chart area (which pulls the secondary Y-axis in with it) it allows it all to fit in the image output to the PowerPoint file.

    It was just a size issue...

Posting Permissions

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