Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Operation on Ranges

Didier,


try -

Set rangeA = Union(rangeB, rangeC)

example-

Set rangeA = Union(Range("A2:B3"), Range("D2:E4"))


regards,

JohnI


"Didier Poskin" wrote in message
...
Hi,
I'm kind of new with vba and I would like to know if there is a way two

make
a new range by adding or uniting two other ranges.

with

dim rangeA as range
dim rangeB as range
dim rangeC as range

I've tried
rangeA = rangeB + rangeC

and
rangeA = rangeB & rangeC

without any success.

Will anybody help me


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 1/09/2003




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Operation on Ranges

ThX John

I'll try tomorrow,


Did


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 1/09/2003


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
HOW 2 BREAK AN OPERATION FARAZ QURESHI Excel Discussion (Misc queries) 2 November 12th 08 12:43 PM
Macro operation Sauvik Excel Worksheet Functions 2 April 12th 08 04:25 AM
what does $ operation mean JO New Users to Excel 1 December 15th 05 11:42 PM
ilegal operation emilija Links and Linking in Excel 1 January 20th 05 12:24 AM
Conditional operation Shetty Excel Worksheet Functions 1 January 17th 05 01:08 PM


All times are GMT +1. The time now is 09:42 AM.

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"