Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kent,
To use Nick's code, you have to go into ToolsReferences in the VBIDE, and check the Microsoft PowerPoint library item. -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Kent" wrote in message ... This worked - Thanks a lot.. I can not get the "Dim as a Powerpoint.Application to work, but the Object dose. "Bob Phillips" wrote: Here is a simple example that paste the activechart in Sub CreatePowerPoint() Dim oPPApp As Object Dim oPPPres As Object Dim oPPSlide As Object Set oPPApp = CreateObject("Powerpoint.Application") Set oPPPres = oPPApp.Presentations.Add oPPApp.Visible = True oPPApp.ActiveWindow.ViewType = 1 'ppViewSlide Set oPPSlide = oPPPres.Slides.Add(1, 11) 'ppLayoutTitleOnly ActiveChart.CopyPicture Appearance:=xlScreen, _ Size:=xlScreen, _ Format:=xlPicture oPPSlide.Shapes.Paste.Select oPPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignCenters, True oPPApp.ActiveWindow.Selection.ShapeRange.Align msoAlignMiddles, True End Sub -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Kent" wrote in message ... Hi - I need some help. I'm new to VBA. My problem is that I in Excel need to make a picture copy of a diagram and then post it in a new slide in a open powerpoint presentation. But how do i write code in a Excel makro to work in Powerpoint? Br Kent |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
POWERPOINT IN EXCEL | Excel Programming | |||
powerpoint into excel | Excel Programming | |||
Excel and Powerpoint | Excel Programming | |||
Excel and Powerpoint | Excel Discussion (Misc queries) | |||
Powerpoint and Excel | Excel Programming |