Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Include exl charts from closed worksheets into PPT slides

Hi,

I have writting a macros for creating charts from the data in the excel
sheet. These charts are stored in a worksheet called 'Charts'.

Now i am creating a macro in powerpoint presentation where i want the
macro to open the excel sheet and include 1 charts in 1 slide.

After all the charts have been included the macro should save the ppt
and close the excel sheet.

Can someone help me on this?

Thanks
Aditya


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Include exl charts from closed worksheets into PPT slides

Have you tried to export the chart as a gif file and insert it as
picture into the presentation

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How to Include exl charts from closed worksheets into PPT slides

Here's some sample code from Samples.Xls (supplied with some versions of
Excel).

Sub MS_PowerPoint()
Dim ppt As Object, pres As Object
'Create a Microsoft PowerPoint session
Set ppt = CreateObject("powerpoint.application")
'Copy the chart on the Chart Labels sheet
Worksheets("Chart Labels").ChartObjects(1).Copy
'Make PowerPoint visible
ppt.Visible = True
'Activate PowerPoint
AppActivate ppt.Name
'Open a new document in Microsoft PowerPoint
Set pres = ppt.Presentations.Add
'Add a slide
pres.Slides.Add 1, ppLayoutBlank
'Paste the chart
ppt.ActiveWindow.View.Paste
Set ppt = Nothing
End Sub


--
Regards
Andy Wiggins
www.BygSoftware.com
Home of "Save and BackUp",
"The Excel Auditor" and "Byg Tools for VBA"



"akshetrapal " wrote in message
...
Hi,

I have writting a macros for creating charts from the data in the excel
sheet. These charts are stored in a worksheet called 'Charts'.

Now i am creating a macro in powerpoint presentation where i want the
macro to open the excel sheet and include 1 charts in 1 slide.

After all the charts have been included the macro should save the ppt
and close the excel sheet.

Can someone help me on this?

Thanks
Aditya


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to Include exl charts from closed worksheets into PPT slides

I have a several hints for dealing with Excel and PowerPoint together:

http://peltiertech.com/Excel/XL_PPT.html

One of the examples will paste each chart embedded in the active sheet
onto its own slide. Using the object browsers for both VB Editors
(Excel's and PowerPoint's) should help you figure out how to save the
presentation and close the worksheet.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

akshetrapal < wrote:

Hi,

I have writting a macros for creating charts from the data in the excel
sheet. These charts are stored in a worksheet called 'Charts'.

Now i am creating a macro in powerpoint presentation where i want the
macro to open the excel sheet and include 1 charts in 1 slide.

After all the charts have been included the macro should save the ppt
and close the excel sheet.

Can someone help me on this?

Thanks
Aditya


---
Message posted from http://www.ExcelForum.com/


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
How to include totals in charts based on pivottables? Arne Olsson Charts and Charting in Excel 1 September 3rd 09 01:53 PM
Charts in closed groups shrinking [email protected] Charts and Charting in Excel 1 March 7th 07 12:18 AM
How do I include average costs in my charts? Annette Charts and Charting in Excel 1 August 21st 06 12:12 PM
Charts to automatically include new rows madeqx Excel Discussion (Misc queries) 2 July 27th 05 02:29 PM
pie charts - how to include "zero" fields on Legends Doug VanOrnum Charts and Charting in Excel 0 November 30th 04 04:49 PM


All times are GMT +1. The time now is 03:57 AM.

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

About Us

"It's about Microsoft Excel"