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: 10
Default Reference problems

Hi! I am trying to make a chart. I cannot refer directly to the cells since
the contents and plecment in spreadsheet is variable. I have 2 problems. 1)
When choosing the area from which get data for the chart I select cells in
the wrong worksheet. when trying to add a reference regarding the worksheet i
get error. the code for this part is:

Range(rng1.Address, rng1.Offset(i, j).Address).Select

I want this code to select cells in a certain worksheet.

2) I cannot refer to multiple ranges in making the chart with indirect
reference. My code for this is:

Range(rng1.Address, rng1.Offset(i, j).Address).Select
Charts.Add
ActiveChart.ChartType = xlColumnClustered
ActiveChart.SetSourceData
Source:=Sheets("Indata").Range("rng1.Address:rng1. Offset(1, 0).Address,
rng2.Address:rng2.Offset(3,0).Address"), PlotBy:=xlColumns
ActiveChart.SeriesCollection(1).XValues =
Sheets("Indata").Range(rng.Offset(0, 1).Address, rng.Offset(0, i).Address)

but the program does not accept this way of defining a range. PLease help me
find the correct way!!!!!!!!
 
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
Vlookup and column reference problems ksean Excel Worksheet Functions 15 May 1st 09 06:27 AM
Column reference problems. HELP!!! keith Excel Discussion (Misc queries) 3 November 4th 08 03:44 PM
cell reference problems Gerritvanzyl Excel Discussion (Misc queries) 2 June 6th 06 04:25 PM
Having problems with a circular reference and the #VALUE! error celicagt1993 Excel Programming 1 March 27th 05 07:43 PM
Cell reference problems with Summary sheet McIntyre Excel Worksheet Functions 3 December 30th 04 05:29 PM


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