Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
First, I'm still on Excel 2003. I'm trying to programmatically open an
embedded excel object in PowerPoint 2003. My code works if the ProgID is Excel.Sheet.8, but if it's Excel.Sheet.12, it's a no-go. This is part of the code For Each myShape In mySlide.Shapes If myShape.Name Like "Object*" Then Debug.Print mySlide.SlideIndex, myShape.OLEFormat.progID If myShape.OLEFormat.progID Like "Excel*" Then For Each myWS In myShape.OLEFormat.Object.Worksheets 'If the ProgID is Excel.Sheet.8, this works and I find a myWS 'If the ProgID is Excel.Sheet.12, doesn't work. 'How do you suggest I proceed. Next myWS End if End if Next myShape .... and so on |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Barb: An attached object you need to ACTIVATE to open the workbook
Try this For Each sld In ActivePresentation.Slides For Each sh In sld.Shapes If sh.Type = msoEmbeddedOLEObject Then If Left(sh.OLEFormat.ProgID, 11) = "Excel.Sheet" Then sh.OLEFormat.Activate End If End If Next Next "Barb Reinhardt" wrote: First, I'm still on Excel 2003. I'm trying to programmatically open an embedded excel object in PowerPoint 2003. My code works if the ProgID is Excel.Sheet.8, but if it's Excel.Sheet.12, it's a no-go. This is part of the code For Each myShape In mySlide.Shapes If myShape.Name Like "Object*" Then Debug.Print mySlide.SlideIndex, myShape.OLEFormat.progID If myShape.OLEFormat.progID Like "Excel*" Then For Each myWS In myShape.OLEFormat.Object.Worksheets 'If the ProgID is Excel.Sheet.8, this works and I find a myWS 'If the ProgID is Excel.Sheet.12, doesn't work. 'How do you suggest I proceed. Next myWS End if End if Next myShape ... and so on |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
EXCEL 2007 Charts Presentation | Charts and Charting in Excel | |||
Opening an embedded object in Excel 2007 | Excel Discussion (Misc queries) | |||
Converting PDF from an Excel Embedded Object | Excel Discussion (Misc queries) | |||
embedded presentation graphs in excel don't update, tables do | Excel Worksheet Functions | |||
Problem With Opening Embedded Object After Turning On "Track Chang | Excel Discussion (Misc queries) |