ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2005, 08:05 AM
Dave Munday
Guest
 
Posts: n/a
Chart for each row of a worksheet

I hope sombody can help with a task I am working on for a colleague at work,
we would like to produce a chart for each row in a worksheet,

we do no know how many rows there will be , each row does have a given
length

an example of the data looks like this

Name Data

A B C D E

Dave Munday 7G 1 2 3 5 4 1 4 4 3 2 5 1 2 5 1 ..... 23 45 12 11 10



For each row as described above we would like to plot the values 23 45 12
11 10 against A B C D E and use Dave Munday 7G as the graph label


I hope I have explained myself enough

thanks for anytime you can spare to help with this issue


Reply With Quote
  #2  
Old 05-29-2005, 11:05 AM
R.VENKATARAMAN
Guest
 
Posts: n/a
Re: Chart for each row of a worksheet

try this sub

suppose your data is in A1 to E5. change this to suit you
the chart will be in a separate chart sheet. if you want it embedded in the
data sheet (e.g. sheet1)
change <ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1">
make other changes if necessary

Public Sub test()
Range("A1:E5").Select
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A1:E5"),
PlotBy:= xlRows
ActiveChart.Location Where:=xlLocationAsNewSheet

End With



Dave Munday <thehappymundays@hotmail.com> wrote in message
news:eb8yR0DZFHA.1412@TK2MSFTNGP12.phx.gbl...
> I hope sombody can help with a task I am working on for a colleague at

work,
> we would like to produce a chart for each row in a worksheet,
>
> we do no know how many rows there will be , each row does have a given
> length
>
> an example of the data looks like this
>
> Name Data
>
> A B C D E
>
> Dave Munday 7G 1 2 3 5 4 1 4 4 3 2 5 1 2 5 1 ..... 23 45 12 11 10
>
>
>
> For each row as described above we would like to plot the values 23 45 12
> 11 10 against A B C D E and use Dave Munday 7G as the graph label
>
>
> I hope I have explained myself enough
>
> thanks for anytime you can spare to help with this issue
>
>





Reply With Quote
  #3  
Old 05-30-2005, 05:05 AM
Dave Munday
Guest
 
Posts: n/a
Re: Chart for each row of a worksheet

Many thanks, I will give this a try

Dave



"R.VENKATARAMAN" <vram26@vsnl$$$.net> wrote in message
news:uD96FKFZFHA.3280@TK2MSFTNGP09.phx.gbl...
> try this sub
>
> suppose your data is in A1 to E5. change this to suit you
> the chart will be in a separate chart sheet. if you want it embedded in

the
> data sheet (e.g. sheet1)
> change <ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1">
> make other changes if necessary
>
> Public Sub test()
> Range("A1:E5").Select
> Charts.Add
> ActiveChart.ChartType = xlLineMarkers
> ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("A1:E5"),
> PlotBy:= xlRows
> ActiveChart.Location Where:=xlLocationAsNewSheet
>
> End With
>
>
>
> Dave Munday <thehappymundays@hotmail.com> wrote in message
> news:eb8yR0DZFHA.1412@TK2MSFTNGP12.phx.gbl...
> > I hope sombody can help with a task I am working on for a colleague at

> work,
> > we would like to produce a chart for each row in a worksheet,
> >
> > we do no know how many rows there will be , each row does have a given
> > length
> >
> > an example of the data looks like this
> >
> > Name Data
> >
> > A B C D E
> >
> > Dave Munday 7G 1 2 3 5 4 1 4 4 3 2 5 1 2 5 1 ..... 23 45 12 11 10
> >
> >
> >
> > For each row as described above we would like to plot the values 23 45

12
> > 11 10 against A B C D E and use Dave Munday 7G as the graph label
> >
> >
> > I hope I have explained myself enough
> >
> > thanks for anytime you can spare to help with this issue
> >
> >

>
>
>
>



Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 10:24 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0