PC Review


Reply
Thread Tools Rate Thread

Create/Update Excel Objects in Power Point

 
 
cl
Guest
Posts: n/a
 
      27th Jun 2005
I developed an add-in in Power Point 97, 2000, XP and 2003 for creating
Excel charts/tables and being able to update them. The code I used is
below:

Dim PPT_CHRT As OLEFormat
Dim PPT_SLD As Slide

'ADD a chart/table
PPT_SLD.Shapes.AddOLEObject Left:=var_chrt_L, Top:=var_chrt_T,
Width:=var_chrt_W, Height:=var_chrt_H, ClassName:="Excel.Chart.8",
Link:=msoFalse

Set PPT_CHRT = PPT_SLD.Shapes(var_SHP_count_no).OLEFormat

PPT_SLD.Shapes(var_SHP_count_no).Select

'EDIT chart/table
Set PPT_SLD = ActivePresentation.Slides(var_SHP_SLD_no)

Set PPT_CHRT = PPT_SLD.Shapes(var_CURR_SHAPE_name).OLEFormat

PPT_SLD.Shapes(var_CURR_SHAPE_name).Select

'CLOSE chart/table
PPT_CHRT.Activate

ActiveWindow.Selection.Unselect

Set PPT_CHRT = Nothing

In 97, 2000 and XP it works without any problem. In 2003, if user
selects to update a lot of charts/tables then messages of Excel start
appearing "Microsoft Office Excel starts recovering your documents" and
errors appear when I use the objects for editing a chart/table.

What could be the problem ?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to Sum Non Numerical Columns and Create a Chart in Office 2003 Excel/Power Point Mike Microsoft Excel Discussion 6 1 Week Ago 07:35 PM
how auto update a chart in power point from excel data source =?Utf-8?B?SG9sbHk=?= Microsoft Powerpoint 1 22nd Jun 2007 06:49 AM
Objects within Power Point =?Utf-8?B?UGF0IENvbnZleQ==?= Microsoft Powerpoint 5 2nd Feb 2007 04:44 AM
Create/Update Excel Objects in Power Point cl Microsoft Excel Discussion 0 27th Jun 2005 11:01 AM
Create/Update Excel Objects in Power Point cl Microsoft Excel Programming 0 27th Jun 2005 11:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 PM.