Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default How do I select multiple selections using the range(cell(),Cell())

HI all.

I need to select for instance Range("B2:J2,E4:K4")

However this is going to be a dynamic selection process (for charts), and I
need to be able to use variables, which, for me, is much easier using the
Range(Cell(),Cell()) method.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How do I select multiple selections using the range(cell(),Cell())

Dim rng1 as Range, rng2 as Range
Dim rng3 as Range
set rng1 = Range(Cell(),Cell())
set rng2 = Range(Cell(),Cell())
set rng3 = Union(rng1,rng2)

--
Regards,
Tom Ogilvy

"havocdragon" wrote:

HI all.

I need to select for instance Range("B2:J2,E4:K4")

However this is going to be a dynamic selection process (for charts), and I
need to be able to use variables, which, for me, is much easier using the
Range(Cell(),Cell()) method.

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
Multiple selections of rows & columns by clicking in one cell FSAnalyst Excel Worksheet Functions 0 November 25th 09 11:09 PM
Excel--Can you select multiple selections in a drop down list? Nukeman Excel Discussion (Misc queries) 3 February 10th 09 09:51 AM
Enabling multiple selections in same cell from dropdown menu Jimmy Excel Discussion (Misc queries) 0 January 2nd 08 05:55 PM
Apply formula to a range with multiple selections [email protected] Excel Programming 4 December 22nd 05 05:54 PM
Creating Multiple GIFs from Multiple Range selections -- I need a volunteer to test my code to see why it fails Father Guido[_5_] Excel Programming 0 November 19th 05 08:52 AM


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