Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Programming a dynamic range then apply it to a chart

Is there a way to programmatically setup a dynamic range (ie - a5:a2000,
c5:c2000) and then apply it to a chart?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Programming a dynamic range then apply it to a chart

Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie - a5:a2000,
c5:c2000) and then apply it to a chart?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Programming a dynamic range then apply it to a chart

I have looked through Jon's website before. It still does not get into the
detail I am looking for with VBA and creating a dynamic range. Does anyone
have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in message
...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie - a5:a2000,
c5:c2000) and then apply it to a chart?





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programming a dynamic range then apply it to a chart

Most speak of a dynamic range as a defined name (insert=Name=Define) with
a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into the
detail I am looking for with VBA and creating a dynamic range. Does anyone
have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie - a5:a2000,
c5:c2000) and then apply it to a chart?







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Programming a dynamic range then apply it to a chart

Tom,

That is exactly what I am talking about...

Do you know of a method to do this programmatically and then apply it to an
embedded chart?

Thanks in advance,
Mark Ivey



"Tom Ogilvy" wrote in message
...
Most speak of a dynamic range as a defined name (insert=Name=Define)
with a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into the
detail I am looking for with VBA and creating a dynamic range. Does anyone
have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie -
a5:a2000,
c5:c2000) and then apply it to a chart?











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Programming a dynamic range then apply it to a chart

Once you've defined the dynamic range, you don't need to redefine it. This
is what you'll need to add for your X or Y values for a workbook range.

=Workbook.xls!NamedRange


"Mark Ivey" wrote:

Tom,

That is exactly what I am talking about...

Do you know of a method to do this programmatically and then apply it to an
embedded chart?

Thanks in advance,
Mark Ivey



"Tom Ogilvy" wrote in message
...
Most speak of a dynamic range as a defined name (insert=Name=Define)
with a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into the
detail I am looking for with VBA and creating a dynamic range. Does anyone
have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie -
a5:a2000,
c5:c2000) and then apply it to a chart?










  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programming a dynamic range then apply it to a chart

Thisworkbook.Names.Add Name:="XAxis", _
Refersto:="=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$ A:$A),1)"

ActiveChart.SeriesCollection(1).XValues = "=Book2!XAxis"

If your workbook was named mybook.xls it would be

ActiveChart.SeriesCollection(1).XValues = "=MyBook.xls!XAxis"
--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
Tom,

That is exactly what I am talking about...

Do you know of a method to do this programmatically and then apply it to
an embedded chart?

Thanks in advance,
Mark Ivey



"Tom Ogilvy" wrote in message
...
Most speak of a dynamic range as a defined name (insert=Name=Define)
with a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into
the detail I am looking for with VBA and creating a dynamic range. Does
anyone have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie -
a5:a2000,
c5:c2000) and then apply it to a chart?











  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Programming a dynamic range then apply it to a chart

Also, maybe something he

http://support.microsoft.com/default...40&Product=xlw
XL97: How To Create a Dynamic Chart Using Visual Basic

http://support.microsoft.com/default...80&Product=xlw
XL2000: How to Use Visual Basic to Create a Dynamic Chart

http://support.microsoft.com/default...55&Product=xlw
Using Visual Basic to Create a Chart Using a Dynamic Range


--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
Tom,

That is exactly what I am talking about...

Do you know of a method to do this programmatically and then apply it to
an embedded chart?

Thanks in advance,
Mark Ivey



"Tom Ogilvy" wrote in message
...
Most speak of a dynamic range as a defined name (insert=Name=Define)
with a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into
the detail I am looking for with VBA and creating a dynamic range. Does
anyone have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie -
a5:a2000,
c5:c2000) and then apply it to a chart?











  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Programming a dynamic range then apply it to a chart

Outstanding information...

Thanks a million Tom...

"Tom Ogilvy" wrote in message
...
Thisworkbook.Names.Add Name:="XAxis", _
Refersto:="=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$ A:$A),1)"

ActiveChart.SeriesCollection(1).XValues = "=Book2!XAxis"

If your workbook was named mybook.xls it would be

ActiveChart.SeriesCollection(1).XValues = "=MyBook.xls!XAxis"
--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
Tom,

That is exactly what I am talking about...

Do you know of a method to do this programmatically and then apply it to
an embedded chart?

Thanks in advance,
Mark Ivey



"Tom Ogilvy" wrote in message
...
Most speak of a dynamic range as a defined name (insert=Name=Define)
with a refers to like

=offset(Sheet1!$A$1,0,0,CountA(Sheet1!$A:$A),1)

What are you talking about.

--
Regards,
Tom Ogilvy


"Mark Ivey" wrote in message
...
I have looked through Jon's website before. It still does not get into
the detail I am looking for with VBA and creating a dynamic range. Does
anyone have any good resources on this topic?


Thanks in advance,
Mark Ivey


"Barb Reinhardt" wrote in
message ...
Take a look at the Dynamic chart links here for more info

http://peltiertech.com/Excel/Charts/Dynamics.html

"Mark Ivey" wrote:

Is there a way to programmatically setup a dynamic range (ie -
a5:a2000,
c5:c2000) and then apply it to a chart?













  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Programming a dynamic range then apply it to a chart

Take a look at:

http://www.bmsltd.co.uk/Excel/Default.htm

Look for funchrt7.zip on the page. A very neat little example of
charting with dynamic ranged names. Here's its description:

"This spreadsheet demonstrates the power arising from using defined
names as the source for your charts. When charting data from a large
data set (say more than a few hundred data points), it can help to be
able to zoom and scroll through the data. I.e. to set a window of say
50 items and scroll through the data showing only that number of items.
This example uses a chart and two scroll bars (for the zooming and
scrolling), while the link from the scroll bar values to the chart
display is done entirely using defined names - no code required."

With a little tweaking, I was also able to add a toolbar to change data
series.

On Nov 4, 3:39 pm, "Mark Ivey" wrote:
Is there a way to programmatically setup a dynamic range (ie - a5:a2000,
c5:c2000) and then apply it to a chart?


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
dynamic range and chart - big help!! Xaraam Excel Worksheet Functions 3 August 4th 08 12:01 PM
Chart empty with new data in the dynamic range chart. Feejo Excel Discussion (Misc queries) 16 January 3rd 08 10:03 PM
dynamic chart range with VBA Jacob Excel Programming 6 September 25th 06 03:28 PM
VBA code needed to apply formula to each value in a dynamic range! burk[_6_] Excel Programming 5 August 3rd 06 01:56 PM
Dynamic Chart Range and Chart Update ExcelMonkey[_154_] Excel Programming 1 July 6th 04 08:26 PM


All times are GMT +1. The time now is 02:15 AM.

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"