Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Patti
 
Posts: n/a
Default Dynamically chart active row

I'm sure I saw a web page that showed how to create a dynamic chart that
allowed you to move your cursor to any row and have the chart update with the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

Here is one I use to chart a column from a double click event in sheet code.
This is more complicated that you need. I must leave the office for the day
but can help tomorrow.
Modify to suit.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
If Target.Column 1 And Target.Row = 3 Then
[f1] = ActiveCell.Column - 1
'[f2] = Replace(UCase(Cells(3, ActiveCell.Column)), "^", "") _
'& " From " & [symbols!b2] & " To " & [symbols!c2]
[F2] = Cells(3, ActiveCell.Column) & " From " & [symbols!b2] & " To " &
[symbols!c2]
Sheets("Chart").Select
End If
End Sub
--
Don Guillett
SalesAid Software

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart that
allowed you to move your cursor to any row and have the chart update with

the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti



  #3   Report Post  
Ed Ferrero
 
Posts: n/a
Default

Hi Patti,

Look for 'Chart Selector' here http://edferrero.m6.net/charting.html

Ed Ferrero

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart that
allowed you to move your cursor to any row and have the chart update with
the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti



  #4   Report Post  
Patti
 
Posts: n/a
Default

Thanks to both for replying.

The chart selector reflects what I was looking for, but I don't see any
instructions on how to create it. I see you are using a named range with
offset, etc, but I'm not sure exactly how to duplicate it.

Patti

"Ed Ferrero" wrote:

Hi Patti,

Look for 'Chart Selector' here http://edferrero.m6.net/charting.html

Ed Ferrero

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart that
allowed you to move your cursor to any row and have the chart update with
the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti




  #5   Report Post  
Ed Ferrero
 
Posts: n/a
Default

Hi Patti,

The 'Chart Selector' runs VBA code on the SheetSelectionChange event. The
code should have enough comments to make it understandable - basically, it
looks for cells that are formatted in bold with a certain colour and assumes
that these are chart headers.

There are two ways to use this in your application;

1) Easy way - paste your data in 'Chart Selector'
Change the row and column headings to what you require, and paste your
data into the worksheet.
Save As... whatever you like.

2) Copy the bits that make this work into a new workbook
Open the VB Editor, copy the code in the Workbook pane to your workbook.
Unhide both charts and copy across to your workbook.
(There are two charts embedded in the worksheet - chtDim,and chtMeasure)
Format a row and a column in Bold and with
a grey background (interior.colorIndex = 15) - for chtDim
or a blue background (interior.colorIndex = 37) - for chtMeasure
Build the named range xAxis, which is a dynamic range to cover
the header row, in my case it is
=OFFSET(Sheet1!$B$7,0,0,1,COUNTA(Sheet1!$7:$7)-1)
Change the number 7 to whatever your row is.

Ed Ferrero

"Patti" wrote in message
...
Thanks to both for replying.

The chart selector reflects what I was looking for, but I don't see any
instructions on how to create it. I see you are using a named range with
offset, etc, but I'm not sure exactly how to duplicate it.

Patti

"Ed Ferrero" wrote:

Hi Patti,

Look for 'Chart Selector' here http://edferrero.m6.net/charting.html

Ed Ferrero

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart
that
allowed you to move your cursor to any row and have the chart update
with
the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti








  #6   Report Post  
Patti
 
Posts: n/a
Default

Thanks for the help Ed!

"Ed Ferrero" wrote:

Hi Patti,

The 'Chart Selector' runs VBA code on the SheetSelectionChange event. The
code should have enough comments to make it understandable - basically, it
looks for cells that are formatted in bold with a certain colour and assumes
that these are chart headers.

There are two ways to use this in your application;

1) Easy way - paste your data in 'Chart Selector'
Change the row and column headings to what you require, and paste your
data into the worksheet.
Save As... whatever you like.

2) Copy the bits that make this work into a new workbook
Open the VB Editor, copy the code in the Workbook pane to your workbook.
Unhide both charts and copy across to your workbook.
(There are two charts embedded in the worksheet - chtDim,and chtMeasure)
Format a row and a column in Bold and with
a grey background (interior.colorIndex = 15) - for chtDim
or a blue background (interior.colorIndex = 37) - for chtMeasure
Build the named range xAxis, which is a dynamic range to cover
the header row, in my case it is
=OFFSET(Sheet1!$B$7,0,0,1,COUNTA(Sheet1!$7:$7)-1)
Change the number 7 to whatever your row is.

Ed Ferrero

"Patti" wrote in message
...
Thanks to both for replying.

The chart selector reflects what I was looking for, but I don't see any
instructions on how to create it. I see you are using a named range with
offset, etc, but I'm not sure exactly how to duplicate it.

Patti

"Ed Ferrero" wrote:

Hi Patti,

Look for 'Chart Selector' here http://edferrero.m6.net/charting.html

Ed Ferrero

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart
that
allowed you to move your cursor to any row and have the chart update
with
the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti






  #7   Report Post  
Tushar Mehta
 
Posts: n/a
Default

A non-programmatic solution that redraws the graph with the recalculate
key (F9 on a Wintel machine):

Suppose the data are in rows 4 onwards, starting with column A. Also
suppose the number of columns with data is *not* known *and* could vary
from row to row.

Select row 4. Create a named formula (Insert | Name Define...)

CurrRow =OFFSET(Sheet1!$A4,0,0,1,COUNTA(Sheet1!4:4))

Note the use of both absolute and relative addresses in the formula.

Now, create a chart using a named formula. If you don't know how see
Names in Charts
http://www.tushar-
mehta.com/excel/newsgroups/dynamic_charts/names_in_charts.html

Select any cell in any row with data. Press F9 and the chart will show
the data in that row.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Thanks for the help Ed!

"Ed Ferrero" wrote:

Hi Patti,

The 'Chart Selector' runs VBA code on the SheetSelectionChange event. The
code should have enough comments to make it understandable - basically, it
looks for cells that are formatted in bold with a certain colour and assumes
that these are chart headers.

There are two ways to use this in your application;

1) Easy way - paste your data in 'Chart Selector'
Change the row and column headings to what you require, and paste your
data into the worksheet.
Save As... whatever you like.

2) Copy the bits that make this work into a new workbook
Open the VB Editor, copy the code in the Workbook pane to your workbook.
Unhide both charts and copy across to your workbook.
(There are two charts embedded in the worksheet - chtDim,and chtMeasure)
Format a row and a column in Bold and with
a grey background (interior.colorIndex = 15) - for chtDim
or a blue background (interior.colorIndex = 37) - for chtMeasure
Build the named range xAxis, which is a dynamic range to cover
the header row, in my case it is
=OFFSET(Sheet1!$B$7,0,0,1,COUNTA(Sheet1!$7:$7)-1)
Change the number 7 to whatever your row is.

Ed Ferrero

"Patti" wrote in message
...
Thanks to both for replying.

The chart selector reflects what I was looking for, but I don't see any
instructions on how to create it. I see you are using a named range with
offset, etc, but I'm not sure exactly how to duplicate it.

Patti

"Ed Ferrero" wrote:

Hi Patti,

Look for 'Chart Selector' here
http://edferrero.m6.net/charting.html

Ed Ferrero

"Patti" wrote in message
...
I'm sure I saw a web page that showed how to create a dynamic chart
that
allowed you to move your cursor to any row and have the chart update
with
the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti







  #8   Report Post  
Jon Peltier
 
Posts: n/a
Default

Patti -

John Walkenbach (http://j-walk.com) covers it in the Interactive Charting section of
his Excel Charts book. I believe it's essentially the same technique as Ed describes.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Patti wrote:

I'm sure I saw a web page that showed how to create a dynamic chart that
allowed you to move your cursor to any row and have the chart update with the
data from that row. Does anyone know of a URL for something like this?

Thanks!

Patti


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeline Chart? ckrogers Charts and Charting in Excel 3 March 17th 05 09:20 PM
How can I create and display a chart dynamically on a UserForm wi. cc Charts and Charting in Excel 1 February 14th 05 02:44 PM
Problem with xlusrgal.xls file Alfred S C Lee Charts and Charting in Excel 2 December 29th 04 05:54 PM
Impedding/Overlaying Charts Phil Hageman Charts and Charting in Excel 4 December 17th 04 07:25 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM


All times are GMT +1. The time now is 10:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"