PC Review


Reply
Thread Tools Rate Thread

Dimensioning question re: chart objects for PowerPoint

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      17th Nov 2006
I have the following for/next loop in Excel

For Each objcht In sht.ChartObjects

In Excel I dimension it as

Dim objcht As ChartObject

I want to do something with a chart object through PowerPoint and I have a
similar For/Next loop

For Each chtobj In XLSheet.ChartObjects

I've tried dimensioning it like this:

Dim chtobj As Application.Excel.ChartObjects

When I try to RUN it, I get an application mismatch on the immediately
preceding line. Can someone assist?

Thanks






 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      17th Nov 2006
Hi,

Try this in your powerpoint code,

Dim chtobj As Excel.ChartObject

Cheers
Andy

Barb Reinhardt wrote:
> I have the following for/next loop in Excel
>
> For Each objcht In sht.ChartObjects
>
> In Excel I dimension it as
>
> Dim objcht As ChartObject
>
> I want to do something with a chart object through PowerPoint and I have a
> similar For/Next loop
>
> For Each chtobj In XLSheet.ChartObjects
>
> I've tried dimensioning it like this:
>
> Dim chtobj As Application.Excel.ChartObjects
>
> When I try to RUN it, I get an application mismatch on the immediately
> preceding line. Can someone assist?
>
> Thanks
>
>
>
>
>
>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
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
Excel Chart Objects In Word Question Wayne Microsoft Word Document Management 0 26th Jun 2009 01:21 AM
PowerPoint 2007 Chart question Shawn Microsoft Powerpoint 2 17th Nov 2008 09:25 PM
Importing Excel chart objects into Powerpoint via VBA Simon Baker Microsoft Powerpoint 2 12th Jun 2008 09:43 AM
Question : One PowerPoint saved as webpage with some windows media player objects, is that correct ? jmg500 Microsoft Powerpoint 9 6th Feb 2006 10:20 PM
Excel97 chart objects compatible with Excel2000 chart objects Vivekananda Microsoft Excel Charting 1 27th Feb 2004 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 PM.