LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Range Variable ?

Hey Guys!

Below is a part of my code to generate charts. I want a dynamic (not fixed)
range.
for example, In "=Calculations!R27C9:R34C9", I don't want to fix my data
range. How do I go about it?


Charts.Add
ActiveChart.ApplyCustomType ChartType:=xlUserDefined, TypeName:="Girish"
ActiveChart.SetSourceData
Source:=Sheets("Calculations").Range("J27:L34"), _
PlotBy:=xlColumns
ActiveChart.SeriesCollection(1).XValues = "=Calculations!R27C9:R34C9"
ActiveChart.SeriesCollection(1).Values = "=Calculations!R27C10:R34C10"
ActiveChart.SeriesCollection(1).Name = "=""Count"""
ActiveChart.SeriesCollection(2).XValues = "=Calculations!R27C9:R34C9"
ActiveChart.SeriesCollection(2).Values = "=Calculations!R27C11:R34C11"
ActiveChart.SeriesCollection(2).Name = "=""Individual"""
ActiveChart.SeriesCollection(3).XValues = "=Calculations!R27C9:R34C9"
ActiveChart.SeriesCollection(3).Name = "=""Cumulative"""
ActiveChart.Location Whe=xlLocationAsObject, Name:="Calculations"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
.Axes(xlCategory, xlSecondary).HasTitle = False
.Axes(xlValue, xlSecondary).HasTitle = False
End With
 
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
Range Variable ? Reuel Excel Programming 0 September 13th 05 10:41 PM
Using a variable to set a Range sip8316 Excel Programming 7 June 3rd 05 11:36 PM
Range as variable No.2 Zsola Excel Programming 6 December 16th 04 02:49 AM
setting a range variable equal to the value of a string variable Pilgrim Excel Programming 2 July 1st 04 11:32 PM
Problem trying to us a range variable as an array variable TBA[_2_] Excel Programming 4 September 27th 03 02:56 PM


All times are GMT +1. The time now is 07:14 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"