how to arrange dimensions of source data array?

M

MCM

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!
 
T

Tom Ogilvy

Source:=Sheets(3).Range(Sheetts(3).Cells(1, 1), sheets(3).Cells(10, 10))

would be the first thing I would try.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top