Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default scaling a chart

I am pasting some Excel charts of various sized into PowerPoint slides. I
would like to have the charts take up the width of the powerpoint slide and
all charts to have the same height in the slide. This what I am currently
doing

ActiveChart.ChartArea.Select
ActiveChart.CopyPicture Appearance:=xlScreen, Size:=xlScreen,
Format:=xlPicture
ppSlide.Shapes.Paste.Select
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignLefts, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignTops, True

This only puts the charts inthe top left corner but does not make them the
width of the slide. Is there a command that will do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default scaling a chart

A shape object will have the following 4 properties

Top, Left, height, width

You should be able to set these properties so the chart all are located the
same on each slide. Use the Macro Record in PowerPoint while moving the
charts to get the correct values. This will give you the proper syntax and
locations to use when making your changes in Excel. You just have to change
the object in excel to use the Power Point object (ppApp) when referencing
the charts

"Scooter" wrote:

I am pasting some Excel charts of various sized into PowerPoint slides. I
would like to have the charts take up the width of the powerpoint slide and
all charts to have the same height in the slide. This what I am currently
doing

ActiveChart.ChartArea.Select
ActiveChart.CopyPicture Appearance:=xlScreen, Size:=xlScreen,
Format:=xlPicture
ppSlide.Shapes.Paste.Select
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignLefts, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignTops, True

This only puts the charts inthe top left corner but does not make them the
width of the slide. Is there a command that will do this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default scaling a chart

PowerPoint 2007 does not have the Macro Recorder anymore. Also all the
charts are of different sizes and I was looking for one command that would
make the charts take up the width of the PowerPoint slide without having to
do each one seperately. I guess that capability does not exist. Thanks
anyway.


"Joel" wrote:

A shape object will have the following 4 properties

Top, Left, height, width

You should be able to set these properties so the chart all are located the
same on each slide. Use the Macro Record in PowerPoint while moving the
charts to get the correct values. This will give you the proper syntax and
locations to use when making your changes in Excel. You just have to change
the object in excel to use the Power Point object (ppApp) when referencing
the charts

"Scooter" wrote:

I am pasting some Excel charts of various sized into PowerPoint slides. I
would like to have the charts take up the width of the powerpoint slide and
all charts to have the same height in the slide. This what I am currently
doing

ActiveChart.ChartArea.Select
ActiveChart.CopyPicture Appearance:=xlScreen, Size:=xlScreen,
Format:=xlPicture
ppSlide.Shapes.Paste.Select
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignLefts, True
ppApp.ActiveWindow.Selection.ShapeRange.Align msoAlignTops, True

This only puts the charts inthe top left corner but does not make them the
width of the slide. Is there a command that will do this?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Chart Scaling Crazyish1 Charts and Charting in Excel 1 June 12th 08 09:55 PM
Scaling within a chart Oliver S Charts and Charting in Excel 1 November 2nd 06 04:53 PM
Macro for Chart Scaling herve[_16_] Excel Programming 1 March 11th 06 09:11 PM
value of chart scaling Paul Excel Programming 1 December 28th 04 09:25 PM
Chart Scaling asphalt Excel Programming 1 September 18th 03 10:50 PM


All times are GMT +1. The time now is 08:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"