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

The union function is used ot merge ranges. Try something like this...

Function (a, inputX as Range, inputY as Range)
dim rngMerged as range

set rngMerged = Union(inputX, inputY)

--
HTH...

Jim Thomlinson


"Greg" wrote:

Hi,

i have a function as follows

Function (a, inputX as Range, inputY as Range)

I need to sort both ranges in asc order by inputX.
I am thinking of using CurrentRegion.Sort command. To use this I need to
merge these ranges into one range so that my inputY range would get sorted .
How would i do this?

Thanks a lot,

--
______
Regards,
Greg

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
merge named ranges ? rolando Charts and Charting in Excel 2 March 1st 09 10:04 AM
merge named ranges Roland Excel Worksheet Functions 1 November 10th 08 01:30 PM
mail merge excludes my headers and critical data in Word merge Nix Excel Discussion (Misc queries) 0 April 21st 06 08:35 PM
Merge ranges based on condition BrianDP1977[_15_] Excel Programming 3 December 9th 05 01:14 AM
how to merge ranges from multiple worksheets crowleydl Excel Worksheet Functions 0 August 5th 05 07:24 PM


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