PC Review


Reply
Thread Tools Rate Thread

how to arrange dimensions of source data array?

 
 
MCM
Guest
Posts: n/a
 
      5th Nov 2006
Hi guys

I am trying to plot a 3D surface graph. but as the user defined
variables are changed (for example number of elements used for
solution) dimensions of graph is also changing. so what can i do in
order to manipulate the source data array for automatic arrangement of
graph ?

here i tried something but it is not working

Worksheets("Sheet1").ChartObjects(2).Chart.SetSourceData
Source:=Sheets(3).Range(Cells(1, 1), Cells(10, 10))


range is only accepting

range("A1:C10")

type format for this process but this not appropriate
for example I can not write An:Cm for user defined n,m numbers
ie how can I use this format in order to arrange automatically source
data array ? ie I want the program arrange the array size automatically
so that a true graph can be obtained for all cases.

please help!

 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      5th Nov 2006
Source:=Sheets(3).Range(Sheetts(3).Cells(1, 1), sheets(3).Cells(10, 10))

would be the first thing I would try.

--
Regards,
Tom Ogilvy


"MCM" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi guys
>
> I am trying to plot a 3D surface graph. but as the user defined
> variables are changed (for example number of elements used for
> solution) dimensions of graph is also changing. so what can i do in
> order to manipulate the source data array for automatic arrangement of
> graph ?
>
> here i tried something but it is not working
>
> Worksheets("Sheet1").ChartObjects(2).Chart.SetSourceData
> Source:=Sheets(3).Range(Cells(1, 1), Cells(10, 10))
>
>
> range is only accepting
>
> range("A1:C10")
>
> type format for this process but this not appropriate
> for example I can not write An:Cm for user defined n,m numbers
> ie how can I use this format in order to arrange automatically source
> data array ? ie I want the program arrange the array size automatically
> so that a true graph can be obtained for all cases.
>
> please help!
>



 
Reply With Quote
 
MCM
Guest
Posts: n/a
 
      5th Nov 2006
thank you very much

it worked!



Tom Ogilvy wrote:
> Source:=Sheets(3).Range(Sheetts(3).Cells(1, 1), sheets(3).Cells(10, 10))
>
> would be the first thing I would try.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "MCM" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi guys
> >
> > I am trying to plot a 3D surface graph. but as the user defined
> > variables are changed (for example number of elements used for
> > solution) dimensions of graph is also changing. so what can i do in
> > order to manipulate the source data array for automatic arrangement of
> > graph ?
> >
> > here i tried something but it is not working
> >
> > Worksheets("Sheet1").ChartObjects(2).Chart.SetSourceData
> > Source:=Sheets(3).Range(Cells(1, 1), Cells(10, 10))
> >
> >
> > range is only accepting
> >
> > range("A1:C10")
> >
> > type format for this process but this not appropriate
> > for example I can not write An:Cm for user defined n,m numbers
> > ie how can I use this format in order to arrange automatically source
> > data array ? ie I want the program arrange the array size automatically
> > so that a true graph can be obtained for all cases.
> >
> > please help!
> >


 
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
Create Array for Data Source John Michl Microsoft Excel Charting 1 17th Mar 2006 07:31 PM
Array as chart series data source =?Utf-8?B?TWl0Y2g=?= Microsoft Excel Programming 1 19th Apr 2005 10:59 PM
Re: Named array as a data source Jon Peltier Microsoft Excel Charting 0 21st Jul 2004 05:50 PM
Getting the dimensions of a multidimensional array Durior Microsoft C# .NET 1 5th Feb 2004 11:40 AM
Max number of array dimensions Suresh Guddanti Microsoft Dot NET Framework 3 6th Sep 2003 10:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:27 PM.