Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel VBA resize picture in powerpoint

Hello !!
I'm doing a lot of presentations using my Excel workbook as base.
So, I've written a code to copy each of my sheets, convert them in pictures
and paste in Powerpoint.

I use the same 1st page in my presentations and the same conception model so
I work with the same powerpoint file as base for all presentations created
from Excel.

My QUESTION :
--- How can I manage to resize every picture to fit Slides Dimension ?

Thank you very much to help me !!!

Here is my VBA code :
---------------------------------------------
Sub copyinpowerpoint()
Dim pPoint As PowerPoint.Application
Dim dPoint As PowerPoint.Presentation
Set pPoint = New PowerPoint.Application
pPoint.Visible = True
Set dPoint = pPoint.Presentations.Open("D:\my.ppt")
Set Diapo2 = .Slides.Add(Index:=2, Layout:=ppLayoutBlank)
Sheets("sheet1").UsedRange.CopyPicture Appearance:=xlScreen, Format:=xlPicture
Diapo2.Shapes.Paste
--
olivier
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel VBA resize picture in powerpoint

On Apr 14, 6:50 pm, Olivier B <benardo974(supprimer contenu des
wrote:
Hello !!
I'm doing a lot of presentations using myExcelworkbook as base.
So, I've written a code to copy each of my sheets, convert them in pictures
and paste in Powerpoint.

I use the same 1st page in my presentations and the same conception model so
I work with the same powerpoint file as base for all presentations created
fromExcel.

My QUESTION :
--- How can I manage to resize every picture to fit Slides Dimension ?

Thank you very much to help me !!!

Here is my VBA code :
---------------------------------------------
Sub copyinpowerpoint()
Dim pPoint As PowerPoint.Application
Dim dPoint As PowerPoint.Presentation
Set pPoint = New PowerPoint.Application
pPoint.Visible = True
Set dPoint = pPoint.Presentations.Open("D:\my.ppt")
Set Diapo2 = .Slides.Add(Index:=2, Layout:=ppLayoutBlank)
Sheets("sheet1").UsedRange.CopyPicture Appearance:=xlScreen, Format:=xlPicture
Diapo2.Shapes.Paste
--
olivier


Hi,

I guess you can resize the picture by shaperange.width and length
procedure, and specifying your size.

Sharad

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
Embedded Excel Objects in PowerPoint resize after editing Barb Reinhardt Excel Discussion (Misc queries) 0 September 21st 09 06:41 PM
Resize Chart to fit picture fill Excel 2007 Ted M H Charts and Charting in Excel 1 June 10th 08 08:34 PM
resize charts to paste into powerpoint/word k2sarah Charts and Charting in Excel 1 February 19th 06 11:15 PM
PASTE SPECIAL PICTURE FROM EXCEL TO POWERPOINT Mark Excel Programming 0 October 7th 05 06:25 PM
How to export a picture or chart from Excel to PowerPoint? RADO[_3_] Excel Programming 2 November 3rd 03 01:15 PM


All times are GMT +1. The time now is 11:06 AM.

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"