Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default discontiguous ranges in charts

I'm trying to create many charts of data meeting specific requirements.
Does anyone know how to get a range mode to include severa
discontiguous cells which have been loaded into range variables?
have tried
Set RangeVar = Range("RangeVar1, RangeVar2, RangeVar3")

but that doesn't work unless you use the explicit cell positions o
RangeVar1, 2, 3, like A1, A2, and A3.

Natha

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default discontiguous ranges in charts

Nathan -

If you put the variable name in quotes, the string evaluated is the
variable name, not the contents of the variable. If the variables are
string addresses, use this:

Set RangeVar = Range(RangeVar1 & ", " & RangeVar2 & ", " & RangeVar3)

If they are actual range objects:

Set RangeVar = Union(RangeVar1, RangeVar2, RangeVar3)

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

Pilgrim < wrote:

I'm trying to create many charts of data meeting specific requirements.
Does anyone know how to get a range mode to include several
discontiguous cells which have been loaded into range variables? I
have tried
Set RangeVar = Range("RangeVar1, RangeVar2, RangeVar3")

but that doesn't work unless you use the explicit cell positions of
RangeVar1, 2, 3, like A1, A2, and A3.

Nathan


---
Message posted from http://www.ExcelForum.com/


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
Deselect a cell in a discontiguous range Excel_VBA_Newb Excel Discussion (Misc queries) 3 October 8th 09 09:02 PM
Is it possible to plot discontiguous cells? Peter Bernadyne Charts and Charting in Excel 8 May 11th 06 09:45 PM
Is it possible to plot discontiguous cells? Peter Bernadyne Excel Discussion (Misc queries) 0 May 9th 06 10:32 PM
2 DATA RANGES IN CHARTS Maria Charts and Charting in Excel 1 November 23rd 05 12:37 AM
Defining a discontiguous Range object Charley Kyd[_2_] Excel Programming 15 December 30th 03 12:33 AM


All times are GMT +1. The time now is 08:07 PM.

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

About Us

"It's about Microsoft Excel"