Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default indirect addressing

I need to adjust the series range as follows;

I have a cell with a range name "EndData". This will be used to set the end
of the series for my line chart. The example below will select data from F5
to F22. I need to replace the 22 in F22 with my cell called EndData which
could have a value of 50 for example. What would be the correct syntax?

ActiveChart.SetSourceData Source:=Sheets("Data").Range("F5:F22"), PlotBy:=
xlColumns

Thanks a bunch,
Gerry


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default indirect addressing

Sheets("Data").Range("F5:F" & Range("EndData"))

Mike F
"GC" wrote in message
...
I need to adjust the series range as follows;

I have a cell with a range name "EndData". This will be used to set the
end of the series for my line chart. The example below will select data
from F5 to F22. I need to replace the 22 in F22 with my cell called
EndData which could have a value of 50 for example. What would be the
correct syntax?

ActiveChart.SetSourceData Source:=Sheets("Data").Range("F5:F22"), PlotBy:=
xlColumns

Thanks a bunch,
Gerry



  #3   Report Post  
Posted to microsoft.public.excel.programming
GC GC is offline
external usenet poster
 
Posts: 18
Default indirect addressing

Thanks Mike.

"Mike Fogleman" wrote in message
...
Sheets("Data").Range("F5:F" & Range("EndData"))

Mike F
"GC" wrote in message
...
I need to adjust the series range as follows;

I have a cell with a range name "EndData". This will be used to set the
end of the series for my line chart. The example below will select data
from F5 to F22. I need to replace the 22 in F22 with my cell called
EndData which could have a value of 50 for example. What would be the
correct syntax?

ActiveChart.SetSourceData Source:=Sheets("Data").Range("F5:F22"),
PlotBy:= xlColumns

Thanks a bunch,
Gerry





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
Graphs using indirect addressing [email protected] Charts and Charting in Excel 3 January 2nd 08 05:37 PM
Indirect Addressing in VBA C Brandt Excel Discussion (Misc queries) 7 July 3rd 07 10:13 PM
Indirect Addressing Kanga 85 Excel Discussion (Misc queries) 3 December 5th 05 04:03 AM
Indirect addressing Ken Rock Excel Programming 2 July 18th 05 01:29 PM
Indirect addressing Tom Schroder Excel Programming 1 November 3rd 03 08:11 PM


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