ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   merge named ranges (https://www.excelbanter.com/excel-worksheet-functions/209668-merge-named-ranges.html)

ROland

merge named ranges
 
is there a build-in function to merge 2 named ranges and give this a 3rd name

Gary''s Student

merge named ranges
 
Say we have two ranges named alpha and beta and want to merge them into
something called gamma.

Sub roland()
Union(Range("alpha"), Range("beta")).Name = "gamma"
End Sub

--
Gary''s Student - gsnu200812


"Roland" wrote:

is there a build-in function to merge 2 named ranges and give this a 3rd name



All times are GMT +1. The time now is 07:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com