Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In Office 2000 this code worked perfectly:
Dim xlCurrChart As Excel.Chart Dim xlBook As Excel.Workbook Dim pptShape As PowerPoint.Shape Set pptShape = rpptTarget.Shapes.AddOLEObject(Width:=fDefaultWidt h, Height:=fDefaultHeight, ClassName:="Excel.Sheet") Set xlBook = pptShape.OLEFormat.Object Set xlCurrChart = xlBook.Charts.Add() But now testing this with Office 2003, the last line raises an error. The weird thing is that this code is in a loop and the error is only raised the first time that this code fires. After the first loop, the code no longer raises any errors and works fine. The error message is: Error number: - 2147417851 method '~' of object '~' failed. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel problem with editing in a PowerPoint Presentation | Excel Discussion (Misc queries) | |||
office 07: auto powerpoint charts using named range data in excel | Charts and Charting in Excel | |||
Linking Several Charts to a PowerPoint Presentation | Links and Linking in Excel | |||
Open Powerpoint Presentation via Excel VBA code | Excel Programming | |||
Creating a powerpoint presentation from MS-Excel | Excel Programming |